6. What does this line do?
‘python’[::-1]
Knowing this, rewrite is_palindrome so that
this function is only one line without using any
of the previous definitions mentioned!
This would make it the shortest way of writing
this function.
8. Adding Swampy
Step ONE:
Download the swampy zipfile
from our course website
Step TWO:
Unzip it to somewhere easy to
access in your home (h:) drive
Step THREE :
Go to your desktop > right click
on ‘my computer’ > properties
> advanced tab > environment
variables > click ‘new’ under
user variables
9. Adding Swampy
Step FOUR:
Under variable name type
:PYTHON PATH
Under variable value type:
H: [AND THEN THE PATH YOU
SAVED IT TO]
Step FIVE:
Restart python.
Step SIX:
To check if you did it
correctly, in the Python Shell
type in:
From TurtleWorld import *
If that didn’t’give you an
error, you are good to go!