If my code is as folllows:
from time import sleep
print('Hi')
sleep(1)
print('How are you?')
The output would be :
Hi
How are you?
How can I make it so that the output is Hi then after a second Hi changes into How are you in one line of the output and is not printed in another line?