Do While: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Created page with "<pre> # Do While key = '' while key != 'q': print('Вы нажали клавишу ' + key) key = input('Нажмите q чтобы выйти: ') </pre>" |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
while key != 'q': |
while key != 'q': |
||
| ⚫ | |||
key = input('Нажмите q чтобы выйти: ') |
key = input('Нажмите q чтобы выйти: ') |
||
| ⚫ | |||
</pre> |
</pre> |
||
Latest revision as of 12:19, 14 July 2026
# Do While
key = ''
while key != 'q':
key = input('Нажмите q чтобы выйти: ')
print('Вы нажали клавишу ' + key)