Skip to content
Advertisement

I want to return to “input” after type wrong character in python [closed]

I want to return to the “input” after the user type another character that is not “n” string, The entry data is a “Input” that make the user press enter to continue or type “n”, but if the user type another string, the console close

JavaScript

Advertisement

Answer

You should do it using a while loop like this

JavaScript
Advertisement