0

Dearcoderzzz help me how to trigger an operation after a delay (eg: 5 sec) in py?

For example Consider a simple addition of 2 variables 'a' and 'b' c=a+b Print(c) If we enter the values of a and b, there won't be a micro second delay to print the sum (c) •••••••••••••••••••• If I need a delay to print 'c' What should I do?

10th Oct 2020, 8:24 AM
ShiniGami ✡️
ShiniGami ✡️ - avatar
2 Respostas
+ 1
c=a+b import time time.sleep(5) print(c)
10th Oct 2020, 8:28 AM
Abhay
Abhay - avatar
0
Thanku abhay Can I visualize the countdown running on run time?
10th Oct 2020, 10:49 AM
ShiniGami ✡️
ShiniGami ✡️ - avatar