+ 1

How can I make the dot(.) to be printing individually when it reach 10x will be stop and print(name)

import time def blinking_cursor(): name=input("What is your name: ") print("please wait") for i in range(10): print(".",end=" ") time.sleep(10) print() print(name+", your name have been successfully printed") blinking_cursor()

29th Jan 2022, 3:28 PM
Muhammad Abdulmalik
Muhammad Abdulmalik - avatar
1 Réponse
+ 6
It is not possible on Sololearn. anyway time.sleep(10) needs an indent (like the print above)
29th Jan 2022, 4:19 PM
Oma Falk
Oma Falk - avatar