0

I'm trying to make a simple 3 dot loading 'animation', what am I doing wrong? Basically I want to print "." (wait) print "." (wait) print "." but all on the same line

import time

username = input("Username: ")
password = input("Password: ")
time.sleep(1)
print(".")
time.sleep(0.8)
print(".")
time.sleep(0.5)
print(".")
time.sleep(0.3)
print("\nHello, " + username)
Trazy
  • 1
  • Hi Trazy, what you want to do is to print without adding the new line. If you search for that problem, there's a number of helpful answer on here already, such as here: https://stackoverflow.com/questions/493386/how-to-print-without-a-newline-or-space – Lagerbaer Aug 24 '21 at 19:51

0 Answers0