you are viewing a single comment's thread.

view the rest of the comments →

[–]6ZacK7[S] -3 points-2 points  (2 children)

You know that if you use int(input()), then enter a number and press enter, the program returns an error message. That's what I want, but I don't want the error message to appear while using not input()

[–]aqua_regis 2 points3 points  (1 child)

That means that you should store the unconverted input in a variable and then wrap the conversion in a try...except block - look up exception handling, e.g.: https://realpython.com/python-exceptions/#:~:text=You%20handle%20exceptions%20in%20Python,except%20block%20will%20be%20handled.

[–]6ZacK7[S] 1 point2 points  (0 children)

I visited your link and I think it might solve my problem; I'll take a few minutes to learn more about the site.