-
Notifications
You must be signed in to change notification settings - Fork 0
/
Heaven.py
100 lines (63 loc) · 2.67 KB
/
Heaven.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
def line2():
print()
print()
#______________________________________________________________________________________
def end_func(): #defined a function which will enhance user experience
print()
print()
a=input("Press X to end program or any other key to run again:-->")
end=a.upper() # this is changing the input of varible {a} to upper case#
if end=="X":
exit() #this is exit command; this ends our program
else :
print()
print(" ","-"*35)
print()
#______________________________________________________________________________________
def instructions():
print('''
Hello!!!! :)
Some instructions regarding this program :-
You will be asked to \"enter Date\" in that column you have to put date in number means if date is 23 August 2008,
Then values will be, Date : 23
Month: 8 or 08
Year : 2008
Select Task Number
1.You can calculate number of days or years,months,days between two days.
2.Calculate number of days,months,years between Today and any other date.
--------By the way thanks for using it --------
''')
#----------------------------------------------------------------------------------------------
def task_number(a):
if a=='1':
print()
print()
print('Calculate time period between two different dates')
elif a=='2':
print()
print()
print('Calculate time period between today and other date')
while a!= '1' and a!= '2' : #created to get rid of problem of wrong inputs
print()
print('Enter valid task number.')
print()
a=(input('Enter Task Number 1 or 2: ---'))
if a=='1':
print()
print()
print('Calculate time period between two different dates')
break
elif a=='2':
print()
print()
print('Calculate time period between today and other date')
break
return a
#-----------------------------------------------------------------------------------------------------
def credits():
print('''created by @DevangShauryaPratapSingh
Class - 11 (PCM)
Thanks for using it :)''')
def ThankSIR():
print('''SPECIAL THANKS TO ARPAN GUPTA SIR''')
#-----------------------------------------------------------------