Asking the user for input until they provide a valid impulse

Asking the user for input until they provide a valid impulse

Im composing a course that takes an input through the user.

This program works needlessly to say if the the user enters meaningful information.

Nonetheless it fails if the user goes into incorrect data:

Rather than crashing, i’d like the program to inquire of for the input again. Similar to this:

Continue lendo “Asking the user for input until they provide a valid impulse”