Closed avyuktsoni0731 closed 9 months ago
As you can see here,
we got min_time = 20
, max_time = 21
using random found random_number = 21
as you can see countdown is changing at the same line, because of sys
using \r, which brings cursor to beginning or the line, where print() always adds \n at the end, if you don't mention end=" "
so this was second tip, you can also use print("" , end="\r")
sleeping for 21 seconds reached 17
sleeping for 21 seconds reached 16
sleeping for 21 seconds reached 14
Hi @bhargavnova ! Thank you for explaining with such patience, really appreciate that. I am new to open source contributions, and wanted to contribute in a good python project. Took me a while to understand the assignment, but i suppose now I get it. Made it as close as possible, and as concise as possible.
Please have a look at it.
Thanks a lot :)
Closes issue #4
Made a Python module named "random_sleep_time_module"
Please run the main.py file by putting different values to verify the program.
Let me know if any changes are required.
Thanks a lot ^_^