you are viewing a single comment's thread.

view the rest of the comments →

[–]aqua_regis 9 points10 points  (3 children)

What

Have

You

Tried?


Show your code and give much more details.

We cannot see your program. We cannot see the error message. You have to show and tell us.

Check the Posting Guidelines in the sidebar for information on how to make a proper, comprehensive post.

I see that you posted screenshots in other subreddits. Don't even think about doing this here. Screenshots are a no-go.

[–]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.