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.
Adding SwampyStep ONE: Download the swampy zipfilefrom our course websiteStep TWO:Unzip it to somewhere easy toaccess in your home (h:) driveStep THREE :Go to your desktop > right clickon ‘my computer’ > properties> advanced tab > environmentvariables > click ‘new’ underuser variables
Adding SwampyStep FOUR:Under variable name type:PYTHON PATHUnder variable value type:H: [AND THEN THE PATH YOUSAVED IT TO]Step FIVE:Restart python.Step SIX:To check if you did itcorrectly, in the Python Shelltype in:From TurtleWorld import *If that didn’t’give you anerror, you are good to go!
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.