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 |
||
| Line 1: | Line 1: | ||
<pre> |
|||
# Do While |
# Do While |
||
| Line 5: | Line 4: | ||
while key != 'q': |
while key != 'q': |
||
| ⚫ | |||
print('Вы нажали клавишу ' + key) |
print('Вы нажали клавишу ' + key) |
||
| ⚫ | |||
</pre> |
|||
Revision as of 12:19, 14 July 2026
- Do While
key =
while key != 'q':
key = input('Нажмите q чтобы выйти: ')
print('Вы нажали клавишу ' + key)