I am a beginer in python and I have a homework and I am stuck a little. The user needs to make an input and if the input is not string, the user needs to make another input for so long until the input is string. First I need to make an input and then check what kind of input it was but then I dont know how to make it possible for the user to make another input. Thank you in front!
The code I started with:
name = input ("Imput the name: ")
if name != str:
print ("The input name needs to be string!")