Python Lists

  Рет қаралды 416,097

Khan Academy

Khan Academy

13 жыл бұрын

Understanding the basics of lists in Python

Пікірлер: 121
@dopier12
@dopier12 10 жыл бұрын
I swear to god you might save me from dropping out of my school altogether.
@ArturoEldur0
@ArturoEldur0 8 жыл бұрын
+Александър Гьорев School provides you with the most basic knowledge needed to pursue any other study, or to become proficient in any other activity with greater easiness. Not dropping from school will make him know what he does not enjoy studying/doing, and hence will make him extremely more likely to find what it is he wants to do in life. He should obviously not drop out of school willingly.
@Aman-wq4xz
@Aman-wq4xz 3 жыл бұрын
so, how was school?
@Robotomy101
@Robotomy101 3 жыл бұрын
well, how was it?
@dopier12
@dopier12 3 жыл бұрын
@@Aman-wq4xz Fortunately I did get the degree in Computer Engineering. However I had kearned from fellow classmates that for many it was the same feeling, and that many resorting to perhaps illegal means to simply pass the tests and did not get to learn much.
@Aman-wq4xz
@Aman-wq4xz 3 жыл бұрын
@@dopier12 wow u actually replied, hope it went well dude And have a great day night and life, I'll mention u in 6 yrs to see how things are goin
@PiratWeber
@PiratWeber 12 жыл бұрын
i'm impressed how good you can write with your mouse. really.
@textdriven
@textdriven 13 жыл бұрын
I just want to say a big thank you for doing this. I've been wanting to learn proper programming for a while now and I have always been told to start with Python. I've trying a few free ebooks but haven't been able to stick with them. Your videos make it very easy and clear. Thank you.
@Kaisli
@Kaisli 8 жыл бұрын
Hopefully Python will come back to KhanAcademy as official curriculum.
@Noldy__
@Noldy__ 7 жыл бұрын
Did they cancel it?
@dariagrebenyuk8203
@dariagrebenyuk8203 7 жыл бұрын
They now have codecademy for that
@jakeambrose4294
@jakeambrose4294 7 жыл бұрын
codecademy generally sucks it doesnt explain or teach anything well at all. ive tried many of their courses
@l052_jeeveshpathak8
@l052_jeeveshpathak8 3 жыл бұрын
Have it come back?🤔🤔🤔
@fcdoth
@fcdoth 13 жыл бұрын
This is a great primer to python lists. One thing you could do in your python interpreter though, and since you mention memory references, would be using the "is" python operator to actually prove that one list is actually a reference to some other list: >>> a = range(10) >>> b = a >>> c = a[:] >>> b is a True >>> c is a False >>>
@dedly13
@dedly13 12 жыл бұрын
holy shit, i used this guy for my gcse's and a levels for maths, science and some other stuff and now hes doing programming, wowowowowowowowowowow. you are one of the best peeps on utube
@Rozenkrantzz
@Rozenkrantzz 13 жыл бұрын
Thank you soo much. Iv'e been trying for weeks to teach myself python
@desipimp299
@desipimp299 12 жыл бұрын
hi, your computer programming videos are very well explained. can you please do more of them?
@derektan6987
@derektan6987 7 жыл бұрын
How many programmers does it take to screw in a lightbulb? 0.
@SAIMOmusic
@SAIMOmusic 6 жыл бұрын
Great explanation. Thank you!
@affable.pebble
@affable.pebble 4 ай бұрын
Good to know, learning this in class. Thank you.
@efath-bz8hv
@efath-bz8hv 6 жыл бұрын
You could make your site paid and still many people would have bought it (maybe including me) but you make everything free.BTW THIS IS THE BEST PYTHON TUTORIAL ON THE WEB
@Tai-chan.
@Tai-chan. 11 жыл бұрын
thank u much for posting this video!!!!! i'm saved.. my world is no longer black n white. thanks fr adding a little color.
@sirlottawin
@sirlottawin 7 жыл бұрын
9, 11 never forget
@3croN
@3croN 13 жыл бұрын
I have Question Khan, please answer: How the Hell do you know everything from a wide range of science ? I mean, you know math, programming, chemy, physics etc. :D Tanx for your videos ^^
@jwl796
@jwl796 6 ай бұрын
what a nice and helpful video, thanks!!
@MrRaj112
@MrRaj112 2 жыл бұрын
wow thanksssssssssss!!!!!!!! Understand nice!!!!!!!
@sharonlee5260
@sharonlee5260 9 жыл бұрын
Thank you for this video!!
@BurtMeister
@BurtMeister 6 жыл бұрын
Excellent. Thanks.
@hehongfei1009
@hehongfei1009 12 жыл бұрын
millions of thanks.
@Belalrazaa
@Belalrazaa Жыл бұрын
sirr make more such lovely❤ videos of programming
@x77686d
@x77686d 12 жыл бұрын
Using the "is" operator to explore which variables reference which lists is mentioned below. A related tool is the id(object) function, which produces a unique identifier. help(id) for more.
@tilakrijal3689
@tilakrijal3689 7 жыл бұрын
you are great sir
@shawnmarcum8078
@shawnmarcum8078 2 жыл бұрын
Towards the end, b=a, and c=a, but b is not equal to c. So if you change c, you change a, if you change b, you should also change a. But b never changes c. Amazing.
@zahir2352010
@zahir2352010 2 жыл бұрын
Python =("Sal is the best teacher") print(Python)
@charlief1440
@charlief1440 6 жыл бұрын
good content bro
@40paschal
@40paschal 12 жыл бұрын
im about to start 9th grade and i find this rather interesting, when do we start learning this in school? or do we not start to learn this till college?
@shanybiran468
@shanybiran468 10 ай бұрын
Thanks for this! Thorough and succinct. I'm not sure but using the term 'second element' might be a bit confusing for some, as in "[0-2] takes everything up to but not including the second element". In layman terms it does take the second element (13), but not the n=2 or third element. Perhaps that language could be separated so one can talk about coding and common terms don't have to change their meaning (first second third etc.). Like in code speak the 0th item, n=1 item, n=2 etc. and then first, second third element mean exactly that. I dunno, just to avoid 'the second element' having two possible interpretations.
@tony757575
@tony757575 12 жыл бұрын
Thanks Sir
@darklinkzx2
@darklinkzx2 12 жыл бұрын
n Python, what keywords do you use to define a new object type? I'm new to objects in python.
@Ferrus91
@Ferrus91 13 жыл бұрын
@eliot0x103 Yeah, I know that, what I was wondering was whether there is anything in the library which produces a textbox with a list of entry boxes in which individual components of the vector can be entered.
@user-tn4yn3jt6m
@user-tn4yn3jt6m 3 жыл бұрын
Wow,amazing
@ravitiwari9195
@ravitiwari9195 3 жыл бұрын
which function to use to see how many elements there are in a list???
@slsl0
@slsl0 13 жыл бұрын
@DehXable Great idea
@eragon4125
@eragon4125 13 жыл бұрын
@gmandog6 i think they are just light explanations of what it is and the man does most of the videos in the academy so he has to know alot there are 100's of videos
@Ferrus91
@Ferrus91 13 жыл бұрын
Is it possible to use the input function to get the user to enter numbers directly into it?
@habibaabuouf8643
@habibaabuouf8643 4 жыл бұрын
Thank you
@v1j7k
@v1j7k 13 жыл бұрын
Python rules !!
@nand3kudasai
@nand3kudasai 12 жыл бұрын
actually there are some languages that thinks 1-based indexes are better. for example lua. and visualbasic (with option base 1) and is possible in delphi also.
@imhellag
@imhellag 9 жыл бұрын
I've been exposing myself learning environments of all the popular languages and so far Ruby and Python seem to make the most sense... its nice and tight compact and powerful little things that run on commmon sense. Now this tells me i should pursue a more eduction in Ruby or Python....but everyone I know is telling me I should have a basic grasp of html, js, in order for things to click. What should i do? JS ad html seem so dry boring compared to gems in RoR and the language of twitter, Python!
@demu41
@demu41 7 жыл бұрын
If you learn CSS with HTML, It will be a lot of fun.
@SavageStephen
@SavageStephen Жыл бұрын
im 11 years behind but by 2024 I expect myself to become an expert programmer and have a job working at an internship
@ninjafrog
@ninjafrog 6 жыл бұрын
Thanks
@batfan1939
@batfan1939 11 жыл бұрын
Are these tutorials computer (specifically Python) PROGAMMING or computer SCIENCE (with Python as the example language)?
@eliot0x103
@eliot0x103 13 жыл бұрын
@Ferrus91 Obviously: a.append( input( "input something" ) )
@jprutube77
@jprutube77 12 жыл бұрын
quick question, what is the program that you're using to write here? Is it a tablet plugin of some sort? Could it be used on WebEx demos? Thanks in advance to anyone who knows.
@bag.n
@bag.n Жыл бұрын
smoothdraw 3
@Gamerfr33k
@Gamerfr33k 11 жыл бұрын
So for example, I'm playing Skyrim and I talk to an NPC. When I pick one the options to talk to that NPC, I'm choosing, for example, a[0], a[1], a[2], and so on? And then the response I get from the NPC is the response to a[0] and what not?
@TheOneLifeRider
@TheOneLifeRider 10 жыл бұрын
because then you can do the following: word_variable = 'something' print word_variable[0:2] + word_variable[2: ] the result will be the word something
@paulceltics
@paulceltics 13 жыл бұрын
thanks
@daedra40
@daedra40 11 жыл бұрын
I wonder why the [0:2] command will only include the 0th (first) element and up to 1st element, ie why less one value.
@ananyats5063
@ananyats5063 3 жыл бұрын
Range 0 to 2 beans from o until 2
@winiwiw1069
@winiwiw1069 8 жыл бұрын
is there a ide for linux that has a split window, one for interactive and one for text mode just like in here?
@izaicslinux6961
@izaicslinux6961 8 жыл бұрын
pycharm community edition i think does that... either on its own or with a plugin.
@sarvakumar4806
@sarvakumar4806 6 жыл бұрын
What resources khan academy uses to make a vedio?
@Name-ot3xw
@Name-ot3xw 11 ай бұрын
It makes me feel better that you struggle with keeping indices straight, counting from 0 is just weird.
@macjsus
@macjsus 10 жыл бұрын
Listing in python is like and array in Action Script
@ankitgupta7951
@ankitgupta7951 6 жыл бұрын
To learn more about Machine Learning and Artificial Intelligence, visit discoverartificialintelligence.com/
@tamasrajczi6811
@tamasrajczi6811 3 жыл бұрын
Can someone help me why is it helpful or make sense when b=a and and we change the first element of b than the first element of a also changes? Why they are refering to the same thing? I am very new to programing. Bests
@stars-and-clouds
@stars-and-clouds 7 жыл бұрын
If I'm studying C++ at high school (I have no choice really) and study python at Computer Science school in college, would it be troublesome?
@jackcash7601
@jackcash7601 7 жыл бұрын
It shouldn't be, the syntax is tougher in C++ than Python, but the concepts are the same. However, if you were going from learning Python to C++ that might be challenging, but you should be fine.
@stars-and-clouds
@stars-and-clouds 7 жыл бұрын
Jack Cash Thank you so much! This is such a relief...
@mauriciocarazas9382
@mauriciocarazas9382 8 жыл бұрын
which is the program u are using like a board
@TheBynirn
@TheBynirn 8 жыл бұрын
+Mauricio Carazas Sal is using Smoothdraw.
@bag.n
@bag.n Жыл бұрын
smoothdraw 3
@ghj6363
@ghj6363 12 жыл бұрын
@PiratWeber he is not using mouse but interactive board!
@Pianomelodies777
@Pianomelodies777 7 жыл бұрын
can somebody show creation of multidimensional list dynamically and store values in it. I mean in Python
@latetilla0205
@latetilla0205 13 жыл бұрын
Where can I get the software?
@Jacksonworthless
@Jacksonworthless 9 жыл бұрын
I cri ery tim.
@blinktheworld33
@blinktheworld33 9 жыл бұрын
It's okay, people cry all the time when they are on their period.
@Jacksonworthless
@Jacksonworthless 9 жыл бұрын
Oi oi.
@Kn0wOneNos3
@Kn0wOneNos3 9 жыл бұрын
wtf
@mubtasimfuadaornob9170
@mubtasimfuadaornob9170 7 жыл бұрын
from bangladesh
@AirventOS
@AirventOS 5 жыл бұрын
In 2 years a Swedish youtuber will make a joke about you
@DeanCampbell123
@DeanCampbell123 23 күн бұрын
This seems complicated. Anyone struggling with Computer Science or Information Technology?
@michaeljose24
@michaeljose24 9 жыл бұрын
Isn't a list also known as an "Array"
@michaeljose24
@michaeljose24 9 жыл бұрын
***** on other languages such as javascript!
@AlexHernandez-ox8kj
@AlexHernandez-ox8kj 9 жыл бұрын
I'm not experienced in Python but I do have a strong knowledge of Java and in Java something like this would be called an array. So I believe you are correct.
@bW9taeH4
@bW9taeH4 8 жыл бұрын
+Mike A. In some languages, Python's notion of a list would be called and array, and a list might be something else. For example, it might allow insertion and deletion of objects at certain positions, while in an array, you can't remove the third element without making the fourth element and following ones shift so they no longer retain their numeric index. Lists are ordered collections of non-unique objects in languages I've used. In Python, they have numeric indexes that remain in a fixed order.
@mubtasimfuadaornob9170
@mubtasimfuadaornob9170 7 жыл бұрын
salman khan..our pride
@IronAnimation
@IronAnimation 12 жыл бұрын
he uses paint :/ and has a detachable calculator that can be downloaded
@DarklightALBANIA
@DarklightALBANIA 12 жыл бұрын
You should start doing html ,or visual basic
@mememeet4140
@mememeet4140 7 жыл бұрын
it really confuses me that you sometimes read a number twice but only write it down once
@Genghiskaran
@Genghiskaran 11 жыл бұрын
i like to eat chicken curry
@furssher
@furssher 12 жыл бұрын
MORE PYTHON??? NOOO
@esrazeynep8086
@esrazeynep8086 8 жыл бұрын
Could you add turkhis subtitle?
@thecomedian1984
@thecomedian1984 10 жыл бұрын
This guy should change his name to "Tommy Two Times"
@Kn0wOneNos3
@Kn0wOneNos3 9 жыл бұрын
haha
@milkerfish
@milkerfish 11 жыл бұрын
lol
@UdayaSidSuresh
@UdayaSidSuresh 4 жыл бұрын
Hi
@muneeb1050
@muneeb1050 7 жыл бұрын
Nice meme
@MrHockeyboy2000
@MrHockeyboy2000 8 жыл бұрын
Why did I take computer science
@mulimotola44
@mulimotola44 7 жыл бұрын
because you wanted money
@AirventOS
@AirventOS 5 жыл бұрын
Because
@carlitok3567
@carlitok3567 Жыл бұрын
Copy
@JohnSmith-yn7jz
@JohnSmith-yn7jz 3 жыл бұрын
He's done nothing but noble things, but his speaking style just keeps suggesting that he hasn't really prepared. His examples just seem to be randomly made up on the fly every time and whether it is or isn't, it's very offputting the way he repeats himself 5 times on the same example and then keeps changing it... :(
@efath-bz8hv
@efath-bz8hv 6 жыл бұрын
IT WORKS....................... (click read more) The LIKE button really works!!!!
For Loops in Python
10:15
Khan Academy
Рет қаралды 790 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 243 М.
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 37 МЛН
A clash of kindness and indifference #shorts
00:17
Fabiosa Best Lifehacks
Рет қаралды 42 МЛН
Каха и суп
00:39
К-Media
Рет қаралды 4,2 МЛН
Writing a Simple Factorial Program. (Python 2)
8:09
Khan Academy
Рет қаралды 243 М.
How to Use Lists in Python
18:49
Programming with Mosh
Рет қаралды 292 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1,1 МЛН
ALL 11 LIST METHODS IN PYTHON EXPLAINED
9:23
Indently
Рет қаралды 78 М.
Dictionary in Python
12:24
Telusko
Рет қаралды 1,3 МЛН
Introduction to Programs Data Types and Variables
11:29
Khan Academy
Рет қаралды 1 МЛН
Python lists vs. arrays: How similar are they?
11:45
Python and Pandas with Reuven Lerner
Рет қаралды 15 М.
for Loop with Lists in Python
8:35
Neso Academy
Рет қаралды 16 М.
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 37 МЛН