Do While: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<pre> |
|||
# Do While |
# Do While |
||
| Line 6: | Line 7: | ||
key = input('Нажмите q чтобы выйти: ') |
key = input('Нажмите q чтобы выйти: ') |
||
print('Вы нажали клавишу ' + key) |
print('Вы нажали клавишу ' + key) |
||
</pre> |
|||
Latest revision as of 12:19, 14 July 2026
# Do While
key = ''
while key != 'q':
key = input('Нажмите q чтобы выйти: ')
print('Вы нажали клавишу ' + key)