View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
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!