Learning Python
Learning Python
If Statements
Strings
print(name[start:stop])
Maths
For Loop
While Loop
Random
Turtle
Graphics
turtle.pencolor(“red”)
turtle.done( )
Tuples, Lists and Dictionaries
Tuples t1 = (1, 2, 3, 4, 5)
Once a tuple is defined you cannot change what is stored in it. This means that when you write the
program you must state what the data is that is being stored in the tuple and the data cannot be
altered while the program is running. Tuples are usually used for menu items that would not need
to be changed.