How to Use Lists in Python

  Рет қаралды 286,059

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

Пікірлер: 94
@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.
@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?
@gauravjha7136
@gauravjha7136 3 жыл бұрын
Best tutorial on python3 list I found after so long
@icrafterphy3659
@icrafterphy3659 3 жыл бұрын
freecodecamp
@qzorn4440
@qzorn4440 3 жыл бұрын
right to the point with great examples thanks :)
@gocodemedia7407
@gocodemedia7407 5 жыл бұрын
Super clear Mosh, well done. I keep learning new stuffs from you everyday.
@jeanfernando6956
@jeanfernando6956 2 жыл бұрын
Muito obrigado, me ajudou demais aqui no meu programa ^^
@blitzxedits7
@blitzxedits7 8 ай бұрын
wow. thank you so much. its complicated but easy when you understand
@emonuss
@emonuss 4 жыл бұрын
Would you consider doing a Selenium Automation class with Java?
@lasc1991
@lasc1991 3 жыл бұрын
Congrats man your videos are awesome !!!! 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
@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!
@jonyqup
@jonyqup 3 жыл бұрын
Amazing video!
@dakshsagar2839
@dakshsagar2839 5 жыл бұрын
When is the course coming out ?
@thiruthondarmadam5629
@thiruthondarmadam5629 3 жыл бұрын
Thank You For Your Excellent Teaching sir
@aleefbilal6211
@aleefbilal6211 2 жыл бұрын
Learned a lot. Thanks
@miguelbaez-montano2486
@miguelbaez-montano2486 3 жыл бұрын
deadass makes it so easy
@sergiutacu7425
@sergiutacu7425 5 жыл бұрын
Can you tell me, why 'remove' is not in the list of the methods? thx ( I use also VS Code)
@Lucas_sGarage
@Lucas_sGarage 2 жыл бұрын
Really helpful, thx 😊
@lowKey_create
@lowKey_create 2 жыл бұрын
your voice is so nice and soothing
@mujahidmahi8168
@mujahidmahi8168 Жыл бұрын
can u plz tell me what's the editor & the theme? it would be really helpful
@gocodemedia7407
@gocodemedia7407 5 жыл бұрын
I just shared your videos now.
@yusufogunsola2292
@yusufogunsola2292 Жыл бұрын
awesome, mosh
@mohammadanarul624
@mohammadanarul624 4 жыл бұрын
Awesome sir
@incridablekarthi228
@incridablekarthi228 5 жыл бұрын
Just now started the beginner vedio,so far it's pretty good 👌
@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
@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?
@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?)
@Plazebology
@Plazebology Жыл бұрын
Whenever I look up a Python tutorial I click on the yellow Mosh thumbnail without hesitation.
@nwachukwuanayofrancis9009
@nwachukwuanayofrancis9009 2 жыл бұрын
i love your videos so much
@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.
@alirezamohseni5045
@alirezamohseni5045 9 ай бұрын
thank you so much
@noamcohen1709
@noamcohen1709 15 күн бұрын
Thanks you saved my exam
@jessontvarghese327
@jessontvarghese327 3 жыл бұрын
Thank you so much. It was really helpful.
@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
@gehadakrp3607
@gehadakrp3607 5 ай бұрын
THANKSSSS❤
@SintayehuSiraye-pf8gh
@SintayehuSiraye-pf8gh 9 ай бұрын
thanks man
@noluthandonkwanyana4472
@noluthandonkwanyana4472 17 күн бұрын
Hey. How do you add up numbers in a list in a specific column?
@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?
@nguyettoleanh9288
@nguyettoleanh9288 2 жыл бұрын
how can you change/modify your previous code?
@anatoliistasiukevych4979
@anatoliistasiukevych4979 20 күн бұрын
hi man, can you share your configuration for vs code
@adityashinde3864
@adityashinde3864 5 жыл бұрын
Sir please upload php course.
@alislm01
@alislm01 7 күн бұрын
Hi, are you from Hamedan originally?
@jack-wv8jq
@jack-wv8jq Жыл бұрын
What is mosh using to write this programs in
@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?
@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'
@ErkanOkman
@ErkanOkman 5 жыл бұрын
👍👏
@ciscowsa9514
@ciscowsa9514 2 жыл бұрын
nice
@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.
@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
@suneetbalwada7470
@suneetbalwada7470 5 жыл бұрын
which IDE u are using?
@hakusho04
@hakusho04 3 жыл бұрын
@@programmingwithmosh why not Pycharm
@winyourself553
@winyourself553 4 жыл бұрын
from 10:11 sec *numbers type will be tuple,not list isn't?
@elinanikolopoulou1769
@elinanikolopoulou1769 Ай бұрын
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 ?
@rihanshefeeque8976
@rihanshefeeque8976 3 ай бұрын
do u know Bindu tc miss
@kazziodex9561
@kazziodex9561 15 күн бұрын
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 4 күн бұрын
You could learn AI code there’s always gonna be companies that need that
@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?
@Sam-kd4mo
@Sam-kd4mo Жыл бұрын
wow
@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
@ilayali_
@ilayali_ 2 жыл бұрын
I want "save the changes" as my ringtone
@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
@bmt8829
@bmt8829 2 жыл бұрын
LSP
@Feetrex
@Feetrex 5 жыл бұрын
have u generated more free coupons i need it
@alexanderpadalka5708
@alexanderpadalka5708 3 жыл бұрын
🗽
@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! ممنون
@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
@user-dp7qx9rv2q
@user-dp7qx9rv2q 6 ай бұрын
let me show you
@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
@rashaalbeiruty78
@rashaalbeiruty78 6 ай бұрын
bro why cant he teach me at school. my computing teacher and school is literally shittttt
@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
@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.......🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇🙇
How to Use Strings in Python - Python Tutorial for Beginners
16:46
Programming with Mosh
Рет қаралды 222 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 226 М.
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 12 МЛН
The delivery rescued them
00:52
Mamasoboliha
Рет қаралды 7 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 6 МЛН
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН
9 Reasons People Hate JavaScript
4:45
Programming with Mosh
Рет қаралды 55 М.
Python Functions | Python Tutorial for Absolute Beginners #1
30:34
Programming with Mosh
Рет қаралды 908 М.
5 Useful Dunder Methods In Python
16:10
Indently
Рет қаралды 50 М.
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 384 М.
Is Coding Still Worth Learning in 2024?
9:33
Programming with Mosh
Рет қаралды 220 М.
Python For Loops - Python Tutorial for Absolute Beginners
14:42
Programming with Mosh
Рет қаралды 552 М.
Python Tutorial for Beginners 4: Lists, Tuples, and Sets
29:05
Corey Schafer
Рет қаралды 1,4 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 12 МЛН