-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path129.py
42 lines (22 loc) · 806 Bytes
/
129.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
33
34
35
36
37
38
39
40
41
42
class ClockTime:
def __init__(self, hour = 12, minute = 0, period = "AM"):
self.hour = hour
self.minute = minute
self.period = period
print(self.hour, self.minute, self.period)
new_time = ClockTime()
#new_time = ClockTime(self)
new_time = ClockTime(12)
#new_time = ClockTime(0)
#new_time = ClockTime("AM")
new_time = ClockTime(12, 0)
#new_time = ClockTime(12, "AM")
#new_time = ClockTime(0, "AM")
new_time = ClockTime(12, 0, "AM")
new_time = ClockTime(hour = 12)
new_time = ClockTime(minute = 0)
new_time = ClockTime(period = "AM")
new_time = ClockTime(hour = 12, minute = 0)
new_time = ClockTime(hour = 12, period = "AM")
new_time = ClockTime(minute = 0, period = "AM")
new_time = ClockTime(hour = 12, minute = 0, period = "AM")