Soccer Seasons Python Code Project Lab 4: Lists Lab, May 29, 2019 Logistics Due: Friday, May 29th no later than 5pm. Submission instructions: upload your
Soccer Seasons Python Code Project Lab 4: Lists
Lab, May 29, 2019
Logistics
Due: Friday, May 29th no later than 5pm.
Submission instructions: upload your solution, entitled FirstName-LastName-Lab4.py to the BrightSpace Lab 4 Dropbox.
Deadline reminder: once this deadline passes, BrightSpace will no longer accept your Python submission and you will no longer be able to earn credit. Thus, if you are not able to fully complete the assignment, submit whatever you have before the deadline so that partial credit can be earned.
Learning outcomes
Gain experience manipulating lists.
Continue gaining experience using functions, iteration, and boolean expressions.
Background
In a soccer season, a win is worth 3 points, a tie is worth 1 point, and a loss is worth 0 points. Due to poor record-keeping, the MSU KickCats knows only how many games they played and the points they earned in each season, but not how many games they won, lost, or tied. They have hired you to write a program that reports the possible combinations of wins, ties, and losses for each season.
Assignment
Download lab4.py and rename it according to the instructions above.
Replace the pass construct in each function with the necessary Python code to produce this output.
Assumptions
There will always be at least one legal combination of wins, ties, and losses.
Test data
soccer_seasons = [[2, 3], [2, 4], [2, 6], [17, 17], [17, 24], [0, 0], [10, 2], [10, 3]]
Grading – 10 points
2 points – the output format is matched exactly.
8 points – your program will be graded using a different value for soccer_seasons. For each element that produces the correct output, you will earn 1 point.
Grading turnaround
All labs graded with scores recorded in BrightSpace no later than lab time (2pm) the following day.
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.