Replace print() output in terminal, for long strings
I have a function in python that the user can run, which can be exit by sending ctrl-c. I want to display a timer on this function, to show how long it was running for, followed by a few static messages. My current implementation of this involves a combination of 33[A
, 33[K
and r
characters. Already works in normal cases.
I am in python 3.12 and I type print(2+2) then I press enter and the value is not created in the terminal when I hit play. Am I missing something
Can anyone explain how I can fix this issue. I am new and learning on my own I am using VDC and Python 3.12
How do I clear a terminal in python?
After someone is done with bidding for an item, I want to clear what they have done so that the next person to player does not know what the person before them did.
My code crashes in python termial and I have tried evrything but it isn’t working
My code runs fine in IDLE but when launched in the Python terminal it crashes after typing the age. I have tried different versions of Python and it runs in IDLE fine. The version currently using 3.13. I am a complete beginner and I only started yesterday.
Trying to clear only part of the terminal screen so my timer could work
I’ve been trying to make a timer in Python as a project, and I want the terminal to display the exact, current time (to the nearest second) AS WELL as allowing user input while displaying it.
Problem when trying to run a project in Python [closed]
Closed 50 mins ago.
Problema ao tentar rodar projeto em python [closed]
Closed 3 mins ago.