Question
Python Question 1. Write a function named makeFootballSchedule that has no inputs Inside your function, you should create a data structure that stores the 2018
Python Question
1. Write a function named makeFootballSchedule that has no inputs Inside your function, you should create a data structure that stores the 2018 Auburn football schedule. You should include the game date formatted as a string ex: 09-25-18, the opposingteam, kickoff time, in central time, using a 24 hour clock (6am = 6:00,6:30 pm = 18:30), a string indicating if the kick off is am or pm in the central time zone, Auburns points in the game, the opposing teams points in the game, and a string for the game outcome WIN or loss, and a string for extra notes and comments (if the game is homecoming, high school band day, if a specific color should be worn etc). If information is not available for a data field, the contents of that field should be a string that reads TBD. The team name must be spelled and capitalized as it is on the official schedule to ensure that your data structure can be accessed correctly.
https://auburntigers.com/schedule.aspx?path=football
Your function should print out a short statement describing the data structure you have used.
Your function should return the data structure.
For consistency and to be able to access the data structures in a uniform way across all of the problems in this assignment, your data fields should have the following names teamName kickOffTime auPoints outcome gameDate kickOffAmPm opponentPoints extraNotes
2. Write a function named getScheduleInfo that has two required parameters,
schedule (a data structure of the type you created in question 1), and teamName(a string), and optional parameters for all of the other data fields listed above. The optional inputs will be entered as 0/1values to indicate if the data corresponding to that field should be returned.
Your function should return a tuple with the team name, the game date, and any of the fields that the user specifies in the inputs that they want returned (indicated by setting an optional input equal to 1, the default for all optional parameters should be 0).
3. Write a function named updateScheduleInfo that hastwo required parameters, schedule (a data structure of the type you created in question 1), and teamName(a string), and one optionalparameter that is a tuple containing the name of a field and the new value that should be storedin that field.
Your function should update the data structure of the football schedule by changing the value of the given input to the new value.
Ex: after the next football game, you would want to update the structure so that the outcome field is marked as a win, so the inputs to the function would be teamName = SOUTHERN MISS and the input tuple would be newInfo = (outcome, WIN)
Your function should return the updated data structure.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started