FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonprogram/calender at master · azus2000/pythonprogram · GitHub
azus2000
pythonprogram
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonprogram
/
calender
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (37 loc) · 1.1 KB
Breadcrumbs
pythonprogram
/
calender
Copy path
File metadata and controls
44 lines (37 loc) · 1.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
def is_leap_year(year):
return (year % 4 == 0) and (year % 100 != 0) or (year % 400 == 0)
def numberOfDaysInAYear(year) :
if year == 2010 and output.is_leap_year = True:
print (365)
elif year==2011 :
print(365)
elif year==2012 :
print (366)
elif year==2013 :
print(365)
elif year==2014 :
print(365)
elif year==2015 :
print(365)
elif year==2016 :
print (366)
elif year==2017 :
print(365)
elif year==2018 :
print(365)
elif year==2019 :
print(365)
elif year == 2020 :
print (366)
else: print('')
print ( year == 2010 ,"Days are 365")
print ( year == 2011 ,"Days are 365")
print ( year == 2012 ,"Days are 366")
print ( year == 2013 ,"Days are 365")
print ( year == 2014 ,"Days are 365")
print ( year == 2015 ,"Days are 365")
print ( year == 2016 ,"Days are 366")
print ( year == 2017 ,"Days are 365")
print ( year == 2018 ,"Days are 365")
print ( year == 2019 ,"Days are 365")
print ( year == 2020 ,"Days are 366")
Back
|
FazBrowse Home
|
New Git URL