Friday, 29 April 2016

2.1 pyShell Playing with Letters

#In the shell type
'hello' + 'ugly'
#Click Enter

#Now try these (words with + and *)
'hello  ' + 'ugly'
 hello + ugly
'abc' * 3
'abc' * 1000
'abc' * 'abc'

#Understanding: print (say/type)
print (' i am happy')
print (hello)
print (42)

mysecret = 'i love shakira! '
print mysecret
print mysecret * 100

note: page 61 hacking cyphers