| Python start 2 |
| 1 | taste = input('Введите любимый вкус:') |
| 2 | taste = taste.lower() |
| 3 | if taste == 'ванильный': |
| 4 | print('Попробуйте наш фирменный чизкейк!') |
| 5 | else: |
| 6 | print('Попробуйте ореховый торт!') |
| 7 | amount_store = int(input('Наличие:')) |
| 8 | error = amount_store < 50 or amount_store > 300 |
| 9 | print('Ошибка хранения:', error) |
| 10 | amount_store = int(input('Наличие:')) |
| 11 | error = amount_store < 50 and amount_store > 300 |
| 12 | print('Ошибка хранения:', error) |
Комментарии