I try to fix a problem where the user can input for example "blub1234" or "blub4567" or "blub912" and the code can check if the user typed in the right word "blub" and the possible value as an int from 1 up to 100k.
user_input = str("Type your blub User")
if user_input == ("user_input" + ???):
print("Okay")
else:
print("Not Okay")
The user shouldn't type for example "blob2312" or "blib1212" only the word "blub" with the number value to 100k. I tried it with ranges and for loops, but it ends every time with:
TypeError: can only concatenate str (not "int") to str