This file contains 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
import datetime | |
print "Hello my closest, most dear and most revered friend" | |
print "Please, if you would be so kind, enter your birthday" | |
valid = False #We start with no value for 'day' at all, so that's certainly not valid | |
while not valid: #while we don't have a valid day: | |
day = int(raw_input("enter the day: )) | |
if day < 1 or day > 31: | |
print "You have entered an invalid answer, please try again" | |
else: |
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |