Created
May 26, 2023 10:47
-
-
Save andrija-zikovic/dfb811fbc438531f3e516bfe35c8b5ef to your computer and use it in GitHub Desktop.
CS50/bank
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 string | |
word = input("Greeting: ") | |
word = word.lower() | |
if word[:5] == 'hello': | |
print("$0") | |
elif word[0] == 'h': | |
print("$20") | |
else: | |
print("$100") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment