Тёмный

How to Use Lists in Python 

Programming with Mosh
Подписаться 3,9 млн
Просмотров 288 тыс.
50% 1

How to use lists in Python. Learn Python basics with this Python tutorial for beginners.
🔥Subscribe for more Python tutorials like this: goo.gl/SjXTT7
🔥Python tutorial for beginners: • Python Tutorials for B...
Python Exercises for Beginners:
programmingwithmosh.com/pytho...
Python Cheat Sheet:
programmingwithmosh.com/pytho...
Want to learn more from me? Check out my blog and courses:
programmingwithmosh.com
/ programmingwithmosh
/ moshhamedani

Опубликовано:

 

13 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 95   
@haopeiyang3443
@haopeiyang3443 4 года назад
You are definitely among the best teachers of programming on RU-vid.
@breaking3837
@breaking3837 Год назад
💯💯
@kunal2727
@kunal2727 Год назад
who asked
@mrcheese1373
@mrcheese1373 8 месяцев назад
Who asked@@kunal2727
@gauravjha7136
@gauravjha7136 4 года назад
Best tutorial on python3 list I found after so long
@icrafterphy3659
@icrafterphy3659 3 года назад
freecodecamp
@woolgathered
@woolgathered 2 года назад
Just found this while studying for an exam - super helpful!! Thank you!
@tishajohnson3909
@tishajohnson3909 2 года назад
Thank you! You making trying to learn and understand this really easy and since I'm on a crash course at my college I need this lol.
@qzorn4440
@qzorn4440 4 года назад
right to the point with great examples thanks :)
@praveenkumar-fm8up
@praveenkumar-fm8up 4 года назад
mosh, is there a way for creating multiple indexes in an index itertatively where input of those lists will be given at run time?
@blitzxedits7
@blitzxedits7 8 месяцев назад
wow. thank you so much. its complicated but easy when you understand
@gocodemedia7407
@gocodemedia7407 5 лет назад
Super clear Mosh, well done. I keep learning new stuffs from you everyday.
@yigitmuhammedduman7796
@yigitmuhammedduman7796 5 часов назад
Great video with great details. Thanks
@lasc1991
@lasc1991 3 года назад
Congrats man your videos are awesome !!!! thanks.
@jeanfernando6956
@jeanfernando6956 2 года назад
Muito obrigado, me ajudou demais aqui no meu programa ^^
@aleefbilal6211
@aleefbilal6211 2 года назад
Learned a lot. Thanks
@anthonymicha7079
@anthonymicha7079 3 года назад
amazing, thanks bro!
@qolbinurwandi
@qolbinurwandi 2 года назад
I should've subscribed to this guy, very helpful, thanks! This is exactly what I wanted for, been seeking a tutorial like this for truly beginners like me
@davidyorkshire7055
@davidyorkshire7055 2 года назад
I should've subscribed to this guy, very helpful, thanks! This is exactly what I wanted for, been seeking a tutorial like this for truly beginners like me
@Lucas_sGarage
@Lucas_sGarage 2 года назад
Really helpful, thx 😊
@jonyqup
@jonyqup 3 года назад
Amazing video!
@thiruthondarmadam5629
@thiruthondarmadam5629 3 года назад
Thank You For Your Excellent Teaching sir
@miguelbaez-montano2486
@miguelbaez-montano2486 3 года назад
deadass makes it so easy
@emonuss
@emonuss 4 года назад
Would you consider doing a Selenium Automation class with Java?
@Plazebology
@Plazebology Год назад
Whenever I look up a Python tutorial I click on the yellow Mosh thumbnail without hesitation.
@mohammadanarul624
@mohammadanarul624 5 лет назад
Awesome sir
@alirezamohseni5045
@alirezamohseni5045 9 месяцев назад
thank you so much
@gocodemedia7407
@gocodemedia7407 5 лет назад
I just shared your videos now.
@jessontvarghese327
@jessontvarghese327 3 года назад
Thank you so much. It was really helpful.
@rylansawyer9162
@rylansawyer9162 Год назад
What is the program he is using? I love how it shows all the options when he does .append and then it explains them.
@yusufogunsola2292
@yusufogunsola2292 Год назад
awesome, mosh
@wesleymatoke3504
@wesleymatoke3504 8 месяцев назад
List unpacking was well explained
@lowKey_create
@lowKey_create 2 года назад
your voice is so nice and soothing
@nwachukwuanayofrancis9009
@nwachukwuanayofrancis9009 2 года назад
i love your videos so much
@incridablekarthi228
@incridablekarthi228 5 лет назад
Just now started the beginner vedio,so far it's pretty good 👌
@sergiutacu7425
@sergiutacu7425 5 лет назад
Can you tell me, why 'remove' is not in the list of the methods? thx ( I use also VS Code)
@noamcohen1709
@noamcohen1709 22 дня назад
Thanks you saved my exam
@dakshsagar2839
@dakshsagar2839 5 лет назад
When is the course coming out ?
@gehadakrp3607
@gehadakrp3607 6 месяцев назад
THANKSSSS❤
@SintayehuSiraye-pf8gh
@SintayehuSiraye-pf8gh 9 месяцев назад
thanks man
@mythical21
@mythical21 Год назад
Hello! I am currently coding a discord bot, and I have a list full of roles that i want to be used, and i want to use the list as it is, but separate it with 'or'(so it will be - 'command.has_role(list_of_roles)', but i want it to be like 'mod *or* admin,* or* bot'. how do i do that?)
@mujahidmahi8168
@mujahidmahi8168 Год назад
can u plz tell me what's the editor & the theme? it would be really helpful
@stergiosbampakis
@stergiosbampakis 5 лет назад
Mosh I really appreciate your work. But almost all your tutorials are really really basic. I would like to see more advanced things like cloud integration, a complete software deployment or advanced algorithms for real needs in enterprise software
@zeinelmokhtar4105
@zeinelmokhtar4105 5 лет назад
print("you're amazing by the way") @@programmingwithmosh
@erniethenerd8495
@erniethenerd8495 3 месяца назад
Looks like the channel is aimed for beginners. His more advanced lessons are behind a pay wall?
@v.r.s.madhumitha2576
@v.r.s.madhumitha2576 Год назад
Hi Mosh! This is Madhu. I have a doubt. Can we add string elements to an empty list?
@Aazami-vi4zu
@Aazami-vi4zu 2 года назад
Mr mosh your tutorial its very good. But i wanna say something. In this tutorial you was forgotten to say extend method for adding list to list.
@nguyettoleanh9288
@nguyettoleanh9288 2 года назад
Woa! If the list is too long and you want to find/check an item in the list, what command will you use?
@noluthandonkwanyana4472
@noluthandonkwanyana4472 24 дня назад
Hey. How do you add up numbers in a list in a specific column?
@anatoliistasiukevych4979
@anatoliistasiukevych4979 28 дней назад
hi man, can you share your configuration for vs code
@adityashinde3864
@adityashinde3864 5 лет назад
Sir please upload php course.
@anthonytilotta
@anthonytilotta 3 года назад
what is the extension called where Mosh can view the definition behind each function? @14:30
@kailashxxxtentacion1538
@kailashxxxtentacion1538 2 года назад
its not an extension just place the cursor on the function or any statements pycharm will give the definitions
@InCorygible
@InCorygible Год назад
So when I ran the letters = ["a", "b", "c"] items = (0, "a") index, letter = items for index, letter in enumerate (letters): print (letter[0], letter[1]) What I received was error message "Traceback (most recent call last): File "./prog.py", line 5, in IndexError: string index out of range" What did I do wrong?
@ErkanOkman
@ErkanOkman 5 лет назад
👍👏
@ciscowsa9514
@ciscowsa9514 2 года назад
nice
@nguyettoleanh9288
@nguyettoleanh9288 2 года назад
how can you change/modify your previous code?
@alislm01
@alislm01 14 дней назад
Hi, are you from Hamedan originally?
@mcdonaldifill238
@mcdonaldifill238 2 года назад
Could you write the code that uses a list containing three characters and then asks a user to enter a character. The code will then search the list to see if the entered character is in the list or not. If it’s not in the list, then the user is asked to enter a different character. This loop keeps repeating until the user enters a character which IS present in the list.
@lowKey_create
@lowKey_create 2 года назад
list = ["a", "b", "c"] char = input("Enter any character") while char not in list: print("The character is not in list") char = input("Please enter any other character ::")
@lowKey_create
@lowKey_create 2 года назад
Here uou go
@jack-wv8jq
@jack-wv8jq Год назад
What is mosh using to write this programs in
@ravjotsingh537
@ravjotsingh537 4 года назад
a = input("enter the list").split(",") print(a) print(type(a)) def negative(b): neg = [] for i in b: neg.append(-i) return neg print(negative(a)) I am getting an error. Traceback (most recent call last): File "@t", line 9, in print(negative(a)) File "@t", line 7, in negative neg.append(-i) TypeError: bad operand type for unary -: 'str'
@mustafakhan5821
@mustafakhan5821 2 года назад
Hi. I created a list called numbers = [1,2,3,4,5]. But my command , numbers[0] does not give me 1.
@Sam-kd4mo
@Sam-kd4mo Год назад
wow
@elinanikolopoulou1769
@elinanikolopoulou1769 2 месяца назад
what if i have a list l = [ 'a', 'b', 'c'] and i want to change it to ['a', 'v', 'c'] ? how do i do that, without changing its length ?
@suneetbalwada7470
@suneetbalwada7470 5 лет назад
which IDE u are using?
@hakusho04
@hakusho04 3 года назад
@@programmingwithmosh why not Pycharm
@kazziodex9561
@kazziodex9561 22 дня назад
Hello Mosh. I have a serious question. I've started learning to code, but i am scared by the time i qualify for a job, AI will replace us. Do you think AI will make coding obsolete?
@BobbyFischer-iu9ut
@BobbyFischer-iu9ut 11 дней назад
You could learn AI code there’s always gonna be companies that need that
@winyourself553
@winyourself553 4 года назад
from 10:11 sec *numbers type will be tuple,not list isn't?
@rihanshefeeque8976
@rihanshefeeque8976 3 месяца назад
do u know Bindu tc miss
@mastercenex
@mastercenex 4 года назад
Hey mosh, I tried using the "*other" at (9:20) and got a syntax error. What is wrong here?
@aer2648
@aer2648 4 года назад
Can you send a link to your code?
@AshishSharma-is4ur
@AshishSharma-is4ur 3 года назад
when my list is cleared through clear method, can we retrieve the cleared list!! Kindly advice?
@SauravKumar-vv5qq
@SauravKumar-vv5qq 3 года назад
no
@rocket_pi
@rocket_pi 5 лет назад
Is List same as array ?
@aspo896
@aspo896 2 года назад
No, because List it can be store Integer and string with multiple elements. But an Array can accept only integers and Float.. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-wWFR5-pzefQ.html
@bmt8829
@bmt8829 2 года назад
LSP
@ilayali_
@ilayali_ 2 года назад
I want "save the changes" as my ringtone
@parsian_korous
@parsian_korous Год назад
hi I am starting a python channel from scratch can you help me what to do, I published videos, but I don't have any views yet! ممنون
@alexanderpadalka5708
@alexanderpadalka5708 3 года назад
🗽
@Feetrex
@Feetrex 5 лет назад
have u generated more free coupons i need it
@user-dp7qx9rv2q
@user-dp7qx9rv2q 6 месяцев назад
let me show you
@mahmudulhussain5401
@mahmudulhussain5401 5 лет назад
Sir i need node.js course ..i dont have money
@mahmudulhussain5401
@mahmudulhussain5401 5 лет назад
@James McKee my card not working .i live in Village
@JohnSmith-hw2ku
@JohnSmith-hw2ku Год назад
testing
@kudakwashemarz2214
@kudakwashemarz2214 Год назад
why is your list saying they are 11 items whilst they are 10 items in the chars "hello world"??????
@ahmedvirk3526
@ahmedvirk3526 Год назад
The space between 'hello' and 'world' is also counted
@allcool27gaming
@allcool27gaming 3 года назад
I hate the transitions in this video. I think that I am done watching then I realise that I still have 15 mins to watch
@rashaalbeiruty78
@rashaalbeiruty78 7 месяцев назад
bro why cant he teach me at school. my computing teacher and school is literally shittttt
@rahulchauhan496
@rahulchauhan496 5 лет назад
Sir I want php courses please upload php courses...
@rahulchauhan496
@rahulchauhan496 5 лет назад
Please sir I request u.......🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇
Далее
Python lists, sets, and tuples explained 🍍
15:06
Просмотров 229 тыс.
How I would learn to code (If I could start over)
9:16
10 Python Comprehensions You SHOULD Be Using
21:35
Просмотров 113 тыс.
Is Coding Still Worth Learning in 2024?
9:33
Просмотров 233 тыс.
C++ Developer Learns Python
9:26
Просмотров 2,7 млн
All 39 Python Keywords Explained
34:08
Просмотров 107 тыс.
5 Good Python Habits
17:35
Просмотров 364 тыс.
Python dictionaries are easy 📙
8:06
Просмотров 194 тыс.