How this code can be re-writed? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponse
+ 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