0
Don't want to convert into string data type .
Here input will going to be integer . But if I don't fill any value then it should repeated asking me to fill the details without changing its data type . I know that bike return=="" is incorrect. But without changing its data type . Is it possible while True: bike_return=int(input("Enter the no of bike/s you want to return: ")) if bike_return=="": print("You cannot keep the field empty. Fill the required details to perform operation") continue id=int(input("Enter your id: ")) if id=="": print("You cannot keep the field empty. Fill the required details to perform operation") continue
2 Answers
0
Thankyou bro