Last active
April 13, 2022 02:21
-
-
Save rahimlis/322f520f09a4e01c46c5ba4e5e9f672f to your computer and use it in GitHub Desktop.
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
## 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