/
diev
/
swaroopch-byte-of-python
Обзор
Документация
Войти
/
diev
/
swaroopch-byte-of-python
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
programs/if.py
19 строк
561 B
Swaroop C H
Add programs folder
19 янв 2016, 18:47
19 янв 2016, 18:47
ed99d1b
Код
Авторство
О чём код?
number = 23 guess = int(input('Enter an integer : ')) if guess == number: # New block starts here print('Congratulations, you guessed it.') print('(but you do not win any prizes!)') # New block ends here elif guess < number: # Another block print('No, it is a little higher than that') # You can do whatever you want in a block ... else: print('No, it is a little lower than that') # you must have guessed > number to reach here print('Done') # This last statement is always executed, # after the if statement is executed.