How to Use Lists in Python

  Рет қаралды 290,701

Programming with Mosh

Programming with Mosh

Күн бұрын

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

Пікірлер: 95
@haopeiyang3443
@haopeiyang3443 4 жыл бұрын
You are definitely among the best teachers of programming on KZfaq.
@breaking3837
@breaking3837 Жыл бұрын
💯💯
@kunal2727
@kunal2727 Жыл бұрын
who asked
@mrcheese1373
@mrcheese1373 8 ай бұрын
Who asked@@kunal2727
@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.
@gauravjha7136
@gauravjha7136 4 жыл бұрын
Best tutorial on python3 list I found after so long
@icrafterphy3659
@icrafterphy3659 3 жыл бұрын
freecodecamp
@qzorn4440
@qzorn4440 4 жыл бұрын
right to the point with great examples thanks :)
@gocodemedia7407
@gocodemedia7407 5 жыл бұрын
Super clear Mosh, well done. I keep learning new stuffs from you everyday.
@blitzxedits7
@blitzxedits7 9 ай бұрын
wow. thank you so much. its complicated but easy when you understand
@lasc1991
@lasc1991 3 жыл бұрын
Congrats man your videos are awesome !!!! 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?
@jeanfernando6956
@jeanfernando6956 2 жыл бұрын
Muito obrigado, me ajudou demais aqui no meu programa ^^
@yigitmuhammedduman7796
@yigitmuhammedduman7796 18 күн бұрын
Great video with great details. Thanks
@emonuss
@emonuss 5 жыл бұрын
Would you consider doing a Selenium Automation class with Java?
@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.
@jonyqup
@jonyqup 3 жыл бұрын
Amazing video!
@aleefbilal6211
@aleefbilal6211 2 жыл бұрын
Learned a lot. Thanks
@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
@anthonymicha7079
@anthonymicha7079 3 жыл бұрын
amazing, thanks bro!
@thiruthondarmadam5629
@thiruthondarmadam5629 3 жыл бұрын
Thank You For Your Excellent Teaching sir
@miguelbaez-montano2486
@miguelbaez-montano2486 3 жыл бұрын
deadass makes it so easy
@Lucas_sGarage
@Lucas_sGarage 2 жыл бұрын
Really helpful, thx 😊
@lowKey_create
@lowKey_create 2 жыл бұрын
your voice is so nice and soothing
@mohammadanarul624
@mohammadanarul624 5 жыл бұрын
Awesome sir
@incridablekarthi228
@incridablekarthi228 5 жыл бұрын
Just now started the beginner vedio,so far it's pretty good 👌
@gocodemedia7407
@gocodemedia7407 5 жыл бұрын
I just shared your videos now.
@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.
@yusufogunsola2292
@yusufogunsola2292 Жыл бұрын
awesome, mosh
@Plazebology
@Plazebology Жыл бұрын
Whenever I look up a Python tutorial I click on the yellow Mosh thumbnail without hesitation.
@wesleymatoke3504
@wesleymatoke3504 9 ай бұрын
List unpacking was well explained
@nguyettoleanh9288
@nguyettoleanh9288 3 жыл бұрын
Woa! If the list is too long and you want to find/check an item in the list, what command will you use?
@alirezamohseni5045
@alirezamohseni5045 10 ай бұрын
thank you so much
@nwachukwuanayofrancis9009
@nwachukwuanayofrancis9009 3 жыл бұрын
i love your videos so much
@mujahidmahi8168
@mujahidmahi8168 Жыл бұрын
can u plz tell me what's the editor & the theme? it would be really helpful
@jessontvarghese327
@jessontvarghese327 3 жыл бұрын
Thank you so much. It was really helpful.
@noamcohen1709
@noamcohen1709 Ай бұрын
Thanks you saved my exam
@sergiutacu7425
@sergiutacu7425 5 жыл бұрын
Can you tell me, why 'remove' is not in the list of the methods? thx ( I use also VS Code)
@gehadakrp3607
@gehadakrp3607 6 ай бұрын
THANKSSSS❤
@dakshsagar2839
@dakshsagar2839 5 жыл бұрын
When is the course coming out ?
@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?
@SintayehuSiraye-pf8gh
@SintayehuSiraye-pf8gh 10 ай бұрын
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?)
@adityashinde3864
@adityashinde3864 5 жыл бұрын
Sir please upload php course.
@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 4 ай бұрын
Looks like the channel is aimed for beginners. His more advanced lessons are behind a pay wall?
@noluthandonkwanyana4472
@noluthandonkwanyana4472 Ай бұрын
Hey. How do you add up numbers in a list in a specific column?
@anatoliistasiukevych4979
@anatoliistasiukevych4979 Ай бұрын
hi man, can you share your configuration for vs code
@ErkanOkman
@ErkanOkman 5 жыл бұрын
👍👏
@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?
@ciscowsa9514
@ciscowsa9514 2 жыл бұрын
nice
@alislm01
@alislm01 Ай бұрын
Hi, are you from Hamedan originally?
@nguyettoleanh9288
@nguyettoleanh9288 3 жыл бұрын
how can you change/modify your previous code?
@anthonytilotta
@anthonytilotta 3 жыл бұрын
what is the extension called where Mosh can view the definition behind each function? @14:30
@kailashxxxtentacion1538
@kailashxxxtentacion1538 3 жыл бұрын
its not an extension just place the cursor on the function or any statements pycharm will give the definitions
@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'
@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
@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.
@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 ?
@Sam-kd4mo
@Sam-kd4mo Жыл бұрын
wow
@winyourself553
@winyourself553 4 жыл бұрын
from 10:11 sec *numbers type will be tuple,not list isn't?
@suneetbalwada7470
@suneetbalwada7470 5 жыл бұрын
which IDE u are using?
@hakusho04
@hakusho04 3 жыл бұрын
@@programmingwithmosh why not Pycharm
@kazziodex9561
@kazziodex9561 Ай бұрын
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 Ай бұрын
You could learn AI code there’s always gonna be companies that need that
@rihanshefeeque8976
@rihanshefeeque8976 4 ай бұрын
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?
@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! ممنون
@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.. kzfaq.info/get/bejne/rb12hZhe1eDJloU.html
@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
@alexanderpadalka5708
@alexanderpadalka5708 3 жыл бұрын
🗽
@bmt8829
@bmt8829 2 жыл бұрын
LSP
@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
@Feetrex
@Feetrex 5 жыл бұрын
have u generated more free coupons i need it
@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
@user-dp7qx9rv2q
@user-dp7qx9rv2q 7 ай бұрын
let me show you
@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
@JohnSmith-hw2ku
@JohnSmith-hw2ku Жыл бұрын
testing
@rahulchauhan496
@rahulchauhan496 5 жыл бұрын
Sir I want php courses please upload php courses...
@rahulchauhan496
@rahulchauhan496 5 жыл бұрын
Please sir I request u.......🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇
Python Tutorial for Beginners 4: Lists, Tuples, and Sets
29:05
Corey Schafer
Рет қаралды 1,4 МЛН
THIS Forbidden Python Syntax Will Get You Fired
0:58
Indently
Рет қаралды 214 М.
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 28 МЛН
Tom & Jerry !! 😂😂
00:59
Tibo InShape
Рет қаралды 60 МЛН
Василиса наняла личного массажиста 😂 #shorts
00:22
Денис Кукояка
Рет қаралды 9 МЛН
a nice math question | #trigonometry
3:25
MATH_DAL
Рет қаралды 13
List Comprehension in Python
2:01
b001
Рет қаралды 52 М.
#5 Python Tutorial for Beginners | List in Python
10:42
Telusko
Рет қаралды 2,9 МЛН
Accessing Elements of a List in Python
17:18
Neso Academy
Рет қаралды 27 М.
AP Computer Science Principles - Create Performance Task
0:19
Hayley Dunn
Рет қаралды 4,3 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 238 М.
Flutter vs. React Native: Mobile App Development Pros and Cons
2:32
Javascript Rest Parameter in 90 Seconds
1:37
CodeNexus
Рет қаралды 19
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01