This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def hanoi(n, fr, to, spare): | |
| '''(int, str, str, str) | |
| Solve the classic puzzle Tower of Hanoi | |
| >>> hanoi(1, "Middle", "Left", "Right") | |
| - Move top ring in 'Middle' tower to the 'Left' tower | |
| ''' | |
| def print_move(fr, to): | |
| print "- Move top ring in '{}' tower to the '{}' tower".format(fr, to) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html><body><h1>It works!</h1> | |
| <p>This is the default web page for this server.</p> | |
| <p>The web server software is running but no content has been added, yet.</p> | |
| </body></html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # Import DateTime | |
| from datetime import datetime, timedelta, date | |
| # Import urllib | |
| import urllib | |
| # Importing utilities from Fabric |
NewerOlder