0

I have problem with Python. I need during entering a value (in input), closing and exiting the program using the ESC key. (By using keyboard)

Number_of_marks = input("Enter your number") `during write this`
x = 0
while Number_of_marks > x:
    marks = input("Give your mark") ``during write this``
    x += 1

I tried sth as while keyboard.is_pressed('Esc') == False: but it doesn't work as I want to. I thank about sleep but in task I have ,,During entering value". I don't have any idea to resolve it The best will be if the solution won't have any library

Olivia
  • 1
  • 1

0 Answers0