I am making some practice problems from online using python, and I have a question about how to stay in a script if an error occurs. For example, I want to read values ββfrom a prompt and compare them with the value of an integer value inside a script. The only problem is that when someone enters something other than the number 'int (value)' (ex. Value = 'fs'), an error occurs and exits the script. I want this to happen, if that happens, I stay inside the script and ask for a different value at the prompt.
source
share