Skip to content

Instantly share code, notes, and snippets.

@rahimlis
Last active April 13, 2022 02:21
Show Gist options
  • Save rahimlis/322f520f09a4e01c46c5ba4e5e9f672f to your computer and use it in GitHub Desktop.
Save rahimlis/322f520f09a4e01c46c5ba4e5e9f672f to your computer and use it in GitHub Desktop.
## Havani sherh eden proqram
def havani_sherh_et():
## Burada temperaturu istifadeciden aliriq
temperature = int(input('Havanin temperaturu necedir?\n'))
## eger hava 30 dereceden yuxaridisa, istifadeciye deyirik ki istidir
if temperature >= 30:
print('Hava istidir.')
## yox eger hava 30 dereceden ashagi amma 20den yuxaridirsa,
## istifadeciye deyirik ki superdir
elif temperature > 20 and temperature < 30:
print('Hava superdir.')
## butun diger hallarda hava serindir
else:
print('Hava serindir.')
## yeniden havani sherh etmeye cagiririq
havani_sherh_et()
havani_sherh_et()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment