Posts by Paulo Thiago • 56 points
4 posts
-
0
votes1
answer59
viewsA: Repeat codes with while loop
Before when the program ran out if the user wanted to run it again could not, because it did not enter the loops while n1 > 10 or n1 < 0 and while n1 > 10 or n1 < 0, due to the fact that…
-
2
votes3
answers280
viewsA: Finish a loop when a given string is typed
You have defined the variable i as float (automatically the value passed has to be float, can’t be string or boolean), the . is a string, and when the user tries to pass this string instead of the…
-
1
votes1
answer149
viewsA: Changing button colors after click
Explanation Basically when you create multiple buttons assigned to a single variable you will not be able to access and edit them later. Ex.: If you define: a = 1 print(a) Resultado: 1 But if you…
-
1
votes1
answer53
viewsA: I’m having trouble with the code
This error occurs because you tried to obtain the contents of a variable after it was destroyed, mainloop() serves to make the program run in loop, if you add some instruction after the mainloop()…