How to Use Lists in Python

  Рет қаралды 288,516

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 KZbin.
@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 :)
@gocodemedia7407
@gocodemedia7407 5 жыл бұрын
Super clear Mosh, well done. I keep learning new stuffs from you everyday.
@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
@jeanfernando6956
@jeanfernando6956 2 жыл бұрын
Muito obrigado, me ajudou demais aqui no meu programa ^^
@lasc1991
@lasc1991 3 жыл бұрын
Congrats man your videos are awesome !!!! thanks.
@yigitmuhammedduman7796
@yigitmuhammedduman7796 5 күн бұрын
Great video with great details. Thanks
@emonuss
@emonuss 5 жыл бұрын
Would you consider doing a Selenium Automation class with Java?
@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
@aleefbilal6211
@aleefbilal6211 2 жыл бұрын
Learned a lot. Thanks
@thiruthondarmadam5629
@thiruthondarmadam5629 3 жыл бұрын
Thank You For Your Excellent Teaching sir
@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.
@anthonymicha7079
@anthonymicha7079 3 жыл бұрын
amazing, thanks bro!
@Lucas_sGarage
@Lucas_sGarage 2 жыл бұрын
Really helpful, thx 😊
@jonyqup
@jonyqup 3 жыл бұрын
Amazing video!
@incridablekarthi228
@incridablekarthi228 5 жыл бұрын
Just now started the beginner vedio,so far it's pretty good 👌
@miguelbaez-montano2486
@miguelbaez-montano2486 3 жыл бұрын
deadass makes it so easy
@lowKey_create
@lowKey_create 2 жыл бұрын
your voice is so nice and soothing
@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?
@mohammadanarul624
@mohammadanarul624 5 жыл бұрын
Awesome sir
@alirezamohseni5045
@alirezamohseni5045 10 ай бұрын
thank you so much
@gocodemedia7407
@gocodemedia7407 5 жыл бұрын
I just shared your videos now.
@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?
@wesleymatoke3504
@wesleymatoke3504 8 ай бұрын
List unpacking was well explained
@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.
@Plazebology
@Plazebology Жыл бұрын
Whenever I look up a Python tutorial I click on the yellow Mosh thumbnail without hesitation.
@nwachukwuanayofrancis9009
@nwachukwuanayofrancis9009 3 жыл бұрын
i love your videos so much
@dakshsagar2839
@dakshsagar2839 5 жыл бұрын
When is the course coming out ?
@mujahidmahi8168
@mujahidmahi8168 Жыл бұрын
can u plz tell me what's the editor & the theme? it would be really helpful
@sergiutacu7425
@sergiutacu7425 5 жыл бұрын
Can you tell me, why 'remove' is not in the list of the methods? thx ( I use also VS Code)
@jessontvarghese327
@jessontvarghese327 3 жыл бұрын
Thank you so much. It was really helpful.
@yusufogunsola2292
@yusufogunsola2292 Жыл бұрын
awesome, mosh
@SintayehuSiraye-pf8gh
@SintayehuSiraye-pf8gh 9 ай бұрын
thanks man
@gehadakrp3607
@gehadakrp3607 6 ай бұрын
THANKSSSS❤
@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?)
@noamcohen1709
@noamcohen1709 27 күн бұрын
Thanks you saved my exam
@adityashinde3864
@adityashinde3864 5 жыл бұрын
Sir please upload php course.
@ErkanOkman
@ErkanOkman 5 жыл бұрын
👍👏
@anatoliistasiukevych4979
@anatoliistasiukevych4979 Ай бұрын
hi man, can you share your configuration for vs code
@alislm01
@alislm01 19 күн бұрын
Hi, are you from Hamedan originally?
@noluthandonkwanyana4472
@noluthandonkwanyana4472 29 күн бұрын
Hey. How do you add up numbers in a list in a specific column?
@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?
@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?
@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
@ciscowsa9514
@ciscowsa9514 2 жыл бұрын
nice
@nguyettoleanh9288
@nguyettoleanh9288 2 жыл бұрын
how can you change/modify your previous code?
@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'
@suneetbalwada7470
@suneetbalwada7470 5 жыл бұрын
which IDE u are using?
@hakusho04
@hakusho04 3 жыл бұрын
@@programmingwithmosh why not Pycharm
@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 ?
@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
@rihanshefeeque8976
@rihanshefeeque8976 3 ай бұрын
do u know Bindu tc miss
@winyourself553
@winyourself553 4 жыл бұрын
from 10:11 sec *numbers type will be tuple,not list isn't?
@kazziodex9561
@kazziodex9561 27 күн бұрын
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 16 күн бұрын
You could learn AI code there’s always gonna be companies that need that
@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
@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?
@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.. kzbin.info/www/bejne/rYipg2hjpd-YnLM
@alexanderpadalka5708
@alexanderpadalka5708 3 жыл бұрын
🗽
@Feetrex
@Feetrex 5 жыл бұрын
have u generated more free coupons i need it
@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! ممنون
@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
@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 6 ай бұрын
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 lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 232 М.
Python Functions | Python Tutorial for Absolute Beginners #1
30:34
Programming with Mosh
Рет қаралды 914 М.
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 36 МЛН
Which one of them is cooler?😎 @potapova_blog
00:45
Filaretiki
Рет қаралды 10 МЛН
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 15 МЛН
Python Tutorial for Beginners 4: Lists, Tuples, and Sets
29:05
Corey Schafer
Рет қаралды 1,4 МЛН
Is THIS Python's MOST Underrated Operator? (Walrus Operator)
5:45
How to Use Strings in Python - Python Tutorial for Beginners
16:46
Programming with Mosh
Рет қаралды 223 М.
Python For Loops - Python Tutorial for Absolute Beginners
14:42
Programming with Mosh
Рет қаралды 556 М.
ALL 11 LIST METHODS IN PYTHON EXPLAINED
9:23
Indently
Рет қаралды 76 М.
Control Flow in Python - If Elif Else Statements
16:08
Programming with Mosh
Рет қаралды 283 М.
Introduction To Lists In Python (Python Tutorial #4)
9:55
CS Dojo
Рет қаралды 1,2 МЛН
List Comprehension - BEST Python feature !!! Fast and Efficient
14:51
Python Simplified
Рет қаралды 186 М.
Dictionary in Python
12:24
Telusko
Рет қаралды 1,3 МЛН
Python dictionaries are easy 📙
8:06
Bro Code
Рет қаралды 196 М.