[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Python Programming Tutorial – 9 – Sequences and Lists
by
Tags:
Comments
21 responses to “Python Programming Tutorial – 9 – Sequences and Lists”
-
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 ? -
You the best
-
exellent
-
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.. -
best video ever seen!
-
excelent.
-
its really nice tutorial
-
Better than my prof 🙂
-
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?
-
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.
-
this is really simple compared to other languages, I love it!
-
Love python because of you!
-
Why isn't it called an array?
-
tuple Ware…lol
-
Phyton is fun to learn!!!
-
yo keep bucking doing yo thang!!! great lessons you got here my brother from another mother
-
Thanks a lot.
-
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'
-
yeah, I also found a different in these two versions( 2.6.1 and 2.7.6)
-
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)?
-
Keep rockin Bucky, your lessons are awesome
Leave a Reply