0

How this code can be re-writed?

How is possible to not use True/False and replace this code logic with break/continue? https://code.sololearn.com/cJpzuKsLw9tH/#py

22nd Oct 2020, 7:05 AM
NIMA
NIMA - avatar
1 Antwort
+ 1
while True: guess = int(input("Enter an integer: ")) if guess==number: print("Yes, That's True") break else: print("Not Trues, Try Again")
22nd Oct 2020, 7:09 AM
Abhay
Abhay - avatar