Python Lists

Поділитися
Вставка
  • Опубліковано 24 сер 2024
  • Understanding the basics of lists in Python

КОМЕНТАРІ • 124

  • @dopier12
    @dopier12 10 років тому +117

    I swear to god you might save me from dropping out of my school altogether.

    • @ArturoEldur0
      @ArturoEldur0 8 років тому +2

      +Александър Гьорев 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 4 роки тому +3

      so, how was school?

    • @Robotomy101
      @Robotomy101 3 роки тому

      well, how was it?

    • @dopier12
      @dopier12 3 роки тому +4

      @@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 роки тому +2

      @@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

  • @textdriven
    @textdriven 13 років тому +16

    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 років тому +60

    Hopefully Python will come back to KhanAcademy as official curriculum.

    • @Noldy__
      @Noldy__ 7 років тому +2

      Did they cancel it?

    • @dariagrebenyuk8203
      @dariagrebenyuk8203 7 років тому

      They now have codecademy for that

    • @jakeambrose4294
      @jakeambrose4294 7 років тому +8

      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?🤔🤔🤔

  • @PiratWeber
    @PiratWeber 12 років тому +10

    i'm impressed how good you can write with your mouse. really.

    • @Hereissarthak
      @Hereissarthak 4 дні тому

      Yahh he is doing very well at that time

    • @PiratWeber
      @PiratWeber 4 дні тому

      @@Hereissarthak bro it's been 12 years since my comment.

  • @derektan6987
    @derektan6987 7 років тому +16

    How many programmers does it take to screw in a lightbulb?
    0.

  • @desipimp299
    @desipimp299 12 років тому +10

    hi, your computer programming videos are very well explained. can you please do more of them?

  • @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

  • @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
    >>>

  • @Rozenkrantzz
    @Rozenkrantzz 13 років тому +1

    Thank you soo much. Iv'e been trying for weeks to teach myself python

  • @3croN
    @3croN 13 років тому +6

    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 ^^

  • @affable.pebble
    @affable.pebble 5 місяців тому

    Good to know, learning this in class. Thank you.

  • @Tai-chan.
    @Tai-chan. 12 років тому

    thank u much for posting this video!!!!! i'm saved.. my world is no longer black n white. thanks fr adding a little color.

  • @x77686d
    @x77686d 12 років тому +2

    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.

  • @SAIMOmusic
    @SAIMOmusic 6 років тому +2

    Great explanation. Thank you!

  • @hehongfei1009
    @hehongfei1009 12 років тому +1

    millions of thanks.

  • @MrRaj112
    @MrRaj112 2 роки тому

    wow thanksssssssssss!!!!!!!! Understand nice!!!!!!!

  • @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

  • @sirlottawin
    @sirlottawin 7 років тому +16

    9, 11
    never forget

  • @shawnmarcum8078
    @shawnmarcum8078 2 роки тому +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.

  • @Belalrazaa
    @Belalrazaa Рік тому

    sirr make more such lovely❤ videos of programming

  • @jwl796
    @jwl796 7 місяців тому

    what a nice and helpful video, thanks!!

  • @SavageStephen
    @SavageStephen Рік тому +1

    im 11 years behind but by 2024 I expect myself to become an expert programmer and have a job working at an internship

  • @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.

  • @zahir2352010
    @zahir2352010 3 роки тому

    Python =("Sal is the best teacher")
    print(Python)

  • @ravitiwari9195
    @ravitiwari9195 3 роки тому +1

    which function to use to see how many elements there are in a list???

  • @40paschal
    @40paschal 12 років тому +1

    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?

  • @ankitgupta7951
    @ankitgupta7951 6 років тому

    To learn more about Machine Learning and Artificial Intelligence, visit discoverartificialintelligence.com/

  • @Hereissarthak
    @Hereissarthak 4 дні тому

    I get know about khan academy in 2019 in my school indian government school chandigarh

  • @tony757575
    @tony757575 12 років тому +1

    Thanks Sir

  • @BurtMeister
    @BurtMeister 6 років тому

    Excellent. Thanks.

  • @shanybiran468
    @shanybiran468 11 місяців тому +1

    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.

  • @darklinkzx2
    @darklinkzx2 12 років тому +1

    n Python, what keywords do you use to define a new object type? I'm new to objects in python.

  • @habibaabuouf8643
    @habibaabuouf8643 4 роки тому

    Thank you

  • @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.

  • @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?

  • @sharonlee5260
    @sharonlee5260 10 років тому

    Thank you for this video!!

  • @tilakrijal3689
    @tilakrijal3689 7 років тому

    you are great sir

  • @charlief1440
    @charlief1440 6 років тому

    good content bro

  • @eliot0x103
    @eliot0x103 13 років тому

    @Ferrus91 Obviously: a.append( input( "input something" ) )

  • @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

  • @imhellag
    @imhellag 9 років тому +1

    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 8 років тому

      If you learn CSS with HTML, It will be a lot of fun.

  • @TheOneLifeRider
    @TheOneLifeRider 11 років тому

    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

  • @daedra40
    @daedra40 11 років тому +1

    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

  • @Name-ot3xw
    @Name-ot3xw Рік тому

    It makes me feel better that you struggle with keeping indices straight, counting from 0 is just weird.

  • @Ferrus91
    @Ferrus91 13 років тому

    Is it possible to use the input function to get the user to enter numbers directly into it?

  • @sarvakumar4806
    @sarvakumar4806 6 років тому +1

    What resources khan academy uses to make a vedio?

  • @user-tn4yn3jt6m
    @user-tn4yn3jt6m 3 роки тому

    Wow,amazing

  • @slsl0
    @slsl0 13 років тому

    @DehXable Great idea

  • @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 2 роки тому

      smoothdraw 3

  • @ghj6363
    @ghj6363 12 років тому

    @PiratWeber he is not using mouse but interactive board!

  • @ninjafrog
    @ninjafrog 6 років тому

    Thanks

  • @batfan1939
    @batfan1939 11 років тому

    Are these tutorials computer (specifically Python) PROGAMMING or computer SCIENCE (with Python as the example language)?

  • @macjsus
    @macjsus 11 років тому

    Listing in python is like and array in Action Script

  • @v1j7k
    @v1j7k 13 років тому

    Python rules !!

  • @paulceltics
    @paulceltics 13 років тому

    thanks

  • @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 років тому +2

      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 2 роки тому

      smoothdraw 3

  • @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.

  • @latetilla0205
    @latetilla0205 13 років тому

    Where can I get the software?

  • @DeanCampbell123
    @DeanCampbell123 2 місяці тому

    This seems complicated. Anyone struggling with Computer Science or Information Technology?

  • @IronAnimation
    @IronAnimation 12 років тому

    he uses paint :/ and has a detachable calculator that can be downloaded

  • @Pianomelodies777
    @Pianomelodies777 7 років тому

    can somebody show creation of multidimensional list dynamically and store values in it. I mean in Python

  • @michaeljose24
    @michaeljose24 9 років тому +5

    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 років тому +2

      +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.

  • @mememeet4140
    @mememeet4140 8 років тому +2

    it really confuses me that you sometimes read a number twice but only write it down once

  • @Jacksonworthless
    @Jacksonworthless 10 років тому +6

    I cri ery tim.

  • @mubtasimfuadaornob9170
    @mubtasimfuadaornob9170 7 років тому

    from bangladesh

    • @AirventOS
      @AirventOS 5 років тому

      In 2 years a Swedish youtuber will make a joke about you

  • @esrazeynep8086
    @esrazeynep8086 8 років тому

    Could you add turkhis subtitle?

  • @furssher
    @furssher 12 років тому

    MORE PYTHON??? NOOO

  • @UdayaSidSuresh
    @UdayaSidSuresh 4 роки тому

    Hi

  • @JohnSmith-yn7jz
    @JohnSmith-yn7jz 3 роки тому +1

    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... :(

  • @Genghiskaran
    @Genghiskaran 11 років тому

    i like to eat chicken curry

  • @DarklightALBANIA
    @DarklightALBANIA 12 років тому

    You should start doing html ,or visual basic

  • @MrHockeyboy2000
    @MrHockeyboy2000 8 років тому

    Why did I take computer science

  • @thecomedian1984
    @thecomedian1984 10 років тому +9

    This guy should change his name to "Tommy Two Times"

  • @mubtasimfuadaornob9170
    @mubtasimfuadaornob9170 7 років тому +2

    salman khan..our pride

  • @milkerfish
    @milkerfish 11 років тому

    lol

  • @muneeb1050
    @muneeb1050 8 років тому

    Nice meme

  • @carlitok3567
    @carlitok3567 2 роки тому

    Copy

  • @efath-bz8hv
    @efath-bz8hv 6 років тому

    IT WORKS.......................
    (click read more)
    The LIKE button really works!!!!