Posts by Matheus Teixeira • 9 points
1 post
-
0
votes6
answers491
viewsA: Optimize code in Python
I found a lighter and simpler way, reducing the number of variables and putting the while in a single row: n=input(f'Digite o texto todo em maiúscula: ') while not n.isupper(): n=input(f'Texto…