Class Date:
'''class to represent a date'''
def __init__(self, month, day, year):
...
Computers and Technology, 18.03.2021 01:50 Anderson0300
Class Date:
'''class to represent a date'''
def __init__(self, month, day, year):
'''Date(month, day, year) -> Date'''
self. month = month
self. day = day
self. year = year
def __str__(self):
'''str(Date) -> str
returns date in readable format'''
# list of strings for the months
months = ['','Jan','Feb','Mar','Apr','May',' Jun','Jul',
'Aug','Sep','Oct','Nov','Dec']
output = months[self. month] + ' ' # month
output += str(self. day) + ', ' # day
output += str(self. year)
return output
def go_to_next_day(self):
'''Date. go_to_next_day()
advances the date to the next day'''
# list with the days in the month
daysInMonth = [0,31,28,31,30,31,30,31,31,30,31,30 ,31]
# check for leap year
isLeapYear = self. year%4 == 0 and \
(self. year%100 != 0 or self. year%400 == 0)
I kinda stuck on what to write next anybody know how I can finish my go_to_next day function
Answers: 3
Computers and Technology, 22.06.2019 14:30
Complete the sentence based on your knowledge of the professional difficulties faced by music artists. digital technology allows audiences to see free live telecasts of music or dance performances through
Answers: 1
Computers and Technology, 22.06.2019 17:00
Annie is creating a corporate report for a company’s annual meeting. in the report, she wants to add the signature of various department heads. which device can annie use to capture signatures to include in the report? a. printer b. monitor c. e-reader d. digitizing tablet
Answers: 1
Computers and Technology, 23.06.2019 15:20
An ou structure in your domain has one ou per department, and all the computer and user accounts are in their respective ous. you have configured several gpos defining computer and user policies and linked the gpos to the domain. a group of managers in the marketing department need different policies that differ from those of the rest of the marketing department users and computers, but you don't want to change the top-level ou structure. which of the following gpo processing features are you most likely to use? a, block inheritance b, gpo enforcement c, wmi filtering d, loopback processing
Answers: 3
Computers and Technology, 24.06.2019 00:20
The guy wire bd exerts on the telephone pole ac a force p directed along bd. knowing the p must have a 720-n component perpendicular to the pole ac, determine the magnitude of force p and its component along line ac.
Answers: 2
Mathematics, 23.01.2021 01:00
Mathematics, 23.01.2021 01:00
Biology, 23.01.2021 01:00
Social Studies, 23.01.2021 01:00
Mathematics, 23.01.2021 01:00
Mathematics, 23.01.2021 01:00
Chemistry, 23.01.2021 01:00
History, 23.01.2021 01:00
History, 23.01.2021 01:00
Mathematics, 23.01.2021 01:00
Mathematics, 23.01.2021 01:00