Python Programming Tutorial – 9 – Sequences and Lists

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

21 responses to “Python Programming Tutorial – 9 – Sequences and Lists”

  1. Ghaïth Ð'x Avatar

    I Did the same thing on python 2.7 and it give me an error !
    It Said : name 'family' is not defined
    Can anyone help me ?

  2. prem tiwari Avatar

    So why does family[-0] i snot supported.. ?
    when we say family[<put here something>] the thing which replaces <put here something> must be an expression which could evaluate out to some integral value e.g. put there
    2*2-4/3+1 this expression evaluates out to 4 so family[2*2-4/3+1] is now equivalent to family[4] , so even when there is a single value there that is also treated as an expression the only thing is an expression containing just one value evaluates out to the same value, except the case of +0 and -0 they both evaluate out to 0 so if -0 is allowed then the machine will fail to decide which zero to choose +0 or -0 , so to resolve this ambiguity python builders can have only two options
    1. Allow forward indexes from 1 onwards like 1,2,3,4,5 and backwards from 0 like -4,-3,-2,-1,0 (Which they didn't accepted. Why ?)
    2. Or the opposite of option 1
    They didn't accepted option 1 because the option 2 will please the programmers who know other languages like C/C++/JAVA to be comfortable…
    Why they cared ..?
    After all they won't like to irritate the programmers of the language which is in use before python gets launched..

  3. Wenchen Fan Avatar

    best video ever seen!

  4. dharmala manohar Avatar

    its really nice tutorial

  5. Rosanna Custodio Avatar

    Better than my prof 🙂

  6. Vinay Ramakrishnan Avatar

    if i wanted to display on the second character of the list what must i do let say only "o"  i declare separately each character?

  7. Zack Wilson Avatar

    As everyonee else has already basically said… this is the best place to learn python on the nternet.  Better than codeacademy by far. You gain a much better understanding of everything. 

  8. Charles Paroissien Avatar

    this is really simple compared to other languages, I love it!

  9. Ahmed Mostafa Avatar

    Love python because of you!

  10. 111McB111 Avatar

    Why isn't it called an array?

  11. Evilene Avatar

    Phyton is fun to learn!!!

  12. Biko Weeks Avatar

    yo keep bucking doing yo thang!!! great lessons you got here my brother from another mother 

  13. Ezra Casas Avatar

    Sorry if I do not make sense but I'm new to programming and I'm trying to make this "game" that would be similar to a Family Feud type of system per say program asks what Theme(list) he would like to choose and in that "list" open a subdirectory in which it'll give a few items. Now if we say that an the question states: "Object; What would be in a kitchen?" and the user enters an item in that list then have it print it back stating that it is correct with so and so points. But when user answers wrong it'll state user got it wrong.  I'm not sure if what I typed made sense to any more experienced Programmers but I'm trying. n_n'

  14. Hari Rana Avatar

    yeah, I also found a different in these two versions( 2.6.1 and 2.7.6)

  15. Hello World Avatar

    On python 3.3.5, I tried "´"[0] and got '\'. Similarly, I tried "hvjdvjnvukfhsekfh"[0], got '\'. Also, tried "´dshfsdh"[0]", and got the same! From  the previous tutorials (which I verified), it should ignore the ´ and give me (I guess) what is an empty string, but it is giving me '\'.Any explanations (probably it s not much important for practical programming purposes)?

  16. 3Animos3 Avatar

    Keep rockin Bucky, your lessons are awesome

Leave a Reply

Your email address will not be published. Required fields are marked *