Prompt the user for a day of the week (e.g., Sunday, Monday, etc.) Display the dates for that day of the week for the next year (see examples below). Do not use any built-in date functions. Don't use anything that we haven't covered in this class. If you do, you will get a zero for the assignment. You can solve this just with lists and loops, etc. If your program is more than 50 lines, you're doing it wrong! (See hint at the bottom.) What to submit: - Your Python program (a .py file) (Only submit one program, not 7!) - Four screen shots of your program working with three different sets of inputs, showing various results. Three of these data sets must match those shown below; the other data set should be one you construct (i.e., you choose a different day of the week).

Respuesta :

For a datetime object to be converted into a string with the specified format, use datetime, strftime(format).

In Python, how do you read the time and date?

  • You don't need to install the datetime module outside because it is already included in Python. to obtain the time and date at the moment, use datetime. Using the DateTime module's now() function. The local time and date are returned by this function.
  • Code: # Sunday = 17 months = 7 years = 2022 initial day = day daysinmonth = [31, 28, 31, 30, 31, 30, 31, 30, 31] "Sunday," "weekdays,"...
  • For a datetime object to be converted into a string with the specified format, use datetime. strftime(format). Standard instructions for specifying the format in which you want to describe datetime are the format codes. The dd-mm-yyyy hh:mm:ss codes, for instance, change the format of dates to dd-mm-yyyy.    

To learn more about Python refer to:

https://brainly.com/question/26497128

#SPJ4

RELAXING NOICE
Relax