Last active
July 20, 2016 10:26
-
-
Save richardbwest/087d84b6fb0dd619dff17dc5aac544be to your computer and use it in GitHub Desktop.
python if example with following code.py
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
answer = input("Do you want me to sing a song?") | |
if answer == "yes": | |
print("La! la! la! la! la!") #This code is indented! | |
print("Goodbye!")# This code is not indented! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment