Skip to content

Instantly share code, notes, and snippets.

@nekoppy
Last active August 1, 2019 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nekoppy/be2a655e41df79d7a56bbf3aed56b548 to your computer and use it in GitHub Desktop.
Save nekoppy/be2a655e41df79d7a56bbf3aed56b548 to your computer and use it in GitHub Desktop.
if-elif-else tempurature
temp = 33
if 25<=temp:
print("夏日です。")
elif 30<=temp:
print("真夏日です。")
elif 35<=temp:
print("猛暑日です。")
else:
print("上着が必要かもしれません。")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment