Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Integer23:
- N = 5674
- print('С начала последнего часа прошло ', N%3600//60, 'полных минут.')
- #Условный оператор
- # Операторы сравнения: <, <=, >, >=, ==, !=
- x = int(input('Enter number: '))
- # 78
- print(x//10, ',', x%10)
- print('Сумма цифр =', x//10 + x % 10)
- if x > 0:
- print('Number is positive!')
- print('===================')
- elif x == 0:
- print('Number is zero!')
- else:
- print('Number is negative!')
- print('******************')
- #Полная версия:
- if x > 0:
- print('Number is positive!')
- print('===================')
- else:
- if x == 0:
- print('Number is zero!')
- else:
- print('Number is negative!')
- print('******************')
- print('End of programm')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement