note from william. oh no. seems you forgot to save! Remember to click File -> save. Partly my own fault for not showing people/doing it myself for you at the end of the session.
In [1]:
print 'hello world'
In [2]:
5 * 5
Out[2]:
In [3]:
print "I still want to learn how to python my way through life"
In [3]:
10 - 5
Out[3]:
In [5]:
print "Goodbye world!"
In [6]:
print "I still want to learn how to use this wriggly format of writing and getting it written"
In [9]:
x = 'what a way to go!'
In [10]:
In [11]:
x * 25
Out[11]:
In [12]:
5 * 5
Out[12]:
In [13]:
4 - 20
Out[13]:
In [14]:
y = 50
In [15]:
y * 20
Out[15]:
In [16]:
'Well, I forgot to save my statting lesson - so I had better save my progress this time'
Out[16]:
In [17]:
y = 10
In [18]:
'hullo there beautiful'
Out[18]:
In [19]:
getinput('testing!')
In [20]:
def getinput(stringname):
mylist.append(stringname)
return stringname
In [22]:
getinput('hullo there gorgeous!')
In [23]:
mylist = []
In [24]:
def getinput(stringname):
mylist.append(stringname)
return stringname
In [26]:
getinput('hullo there!')
Out[26]:
In [30]:
print mylist
In [28]:
mylist.append(memory)my
In [29]:
mylist.append('anything will do')
In [31]:
mylist[0]
Out[31]:
In [32]:
mylist.sort()
In [39]:
import random
In [34]:
mylist.remove('hullo there!')
In [46]:
random.randint(2,10)
Out[46]:
In [17]:
random.randint(1,8)
In [55]:
x = random.randint(2,10)
In [58]:
print x
In [16]:
x = random.randint(4,9)
In [15]:
x = random.randint(2,10)
In [14]:
print x
In [12]:
x = random.randint(12,16)
In [11]:
import random