Queer European MD passionate about IT

bank.py 334 B

1234567891011121314151617
  1. def main():
  2. greeting = input("Greeting:\t\t")
  3. print(value(f"${greeting}"))
  4. def value(greeting: str) -> str:
  5. greeting = greeting.lower().strip()
  6. if greeting.startswith("hello"):
  7. return 0
  8. elif greeting.startswith("h"):
  9. return 20
  10. else:
  11. return 100
  12. if __name__ == "__main__":
  13. main()