Hi and thanks for your time. I need to add the wrong data types in my code that says that it should be an invalid operation when I am using strings. I try to add the break statement in for loop, but I cannot go through. I hope you can help me.
Code:
def userInput():
upper = int(input("Enter UppperNumber from column: "))
if upper < 0:
print(upper,"Nice, it is in range")
elif upper < 256:
print(upper, "Nice, it is in range")
else:
print(
"You must use only numbers which range is : 0 - 255")
upper = None# we define upperbit as nothing and restart the function, same applies with lowerbot
userInput()
lower = int(input("Enter LowerNumber from column: "))
if lower < 0:
print(lower, "Nice, it is in range")
elif lower < 256:
print(lower, "Nice, it is in range")
else:
print(
"You must use only numbers which range is : 0 - 255")
lower_bit_int = None
userInput()