Posts by Os carros são como as lanchas • 1 point
4 posts
-
-2
votes1
answer19
viewsQ: How do I print information in the same place as the previous information?
I wanted to know a command where I could update the screen and the new information appear in the same place, like a "loading" bar that when it increases does not create a copy below but updates in…
-
-1
votes1
answer54
viewsQ: How do I write information on the same line without creating a new one?
I’m making a program, and I want every time the value of the variable changes, to appear on the same line and not to create new lines with the same content.…
-
0
votes1
answer867
viewsQ: How to convert a saved string into a . txt file, to an integer number?
Example: test = open('test.txt', 'w') test.write('6000') close-up test.() How do I convert the contents of the . txt file into integer so I can do operations with it? in case you have no way to do…
-
0
votes1
answer122
viewsQ: How can I replace an error with a print without terminating the program? Python 3
If I create a variable with an input that only receives integer numbers (int) and put other types of numbers or even letters, it will generate an error and the program will terminate. I was…