-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcount.py
32 lines (31 loc) · 1.23 KB
/
count.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This program was written to count using the Superduper counter.
from datetime import datetime
def intro():
print("Hello.\n Welcome to the... \n (drumroll please!) \n ***drumroll*** \n Superduper counter!")
def main():
intro()
while True:
try:
print("Enter the number you want the Superduper counter to count to to below:")
num_count = int(input())
print("Enter the number you want the Superduper counter to count by below:")
num_step = int(input())
today = datetime.now()
print("Day: ", today.day)
print("Month: ", today.month)
print("Year: ", today.year)
print("Hour: ", today.hour)
print("Minute: ", today.minute)
print("Second: ", today.second)
for i in range(0,num_count+1,num_step):
print(i)
today = datetime.now()
print("Day: ", today.day)
print("Month: ", today.month)
print("Year: ", today.year)
print("Hour: ", today.hour)
print("Minute: ", today.minute)
print("Second: ", today.second)
except:
print("Sorry, But you did not enter a number(type int(integer))")
main()