first commit
This commit is contained in:
13
hello_world.py
Normal file
13
hello_world.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import time
|
||||
|
||||
# Total duration in seconds (10 minutes * 60 seconds)
|
||||
duration = 10 * 60
|
||||
# Interval between messages in seconds
|
||||
interval = 5
|
||||
# End time calculation
|
||||
end_time = time.time() + duration
|
||||
|
||||
# Loop until the current time is less than the end time
|
||||
while time.time() < end_time:
|
||||
print("Hello world - from Python!")
|
||||
time.sleep(interval)
|
||||
Reference in New Issue
Block a user