Created
November 2, 2019 01:38
-
-
Save sojohnnysaid/0bd30a3828073bcf3ddfed045eb58677 to your computer and use it in GitHub Desktop.
Python logic operators
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
from cs50 import get_string | |
c = get_string("enter Y or N if this is fun: ") | |
if c == "Y" or c == "y": | |
print("glad you are having fun") | |
if c == "N" or c == "n": | |
print("it gets better...") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment