Question: GIven the provided variables, write a SINGLE call to the print function that generates the following output. Fruit Amount Apple 1 2 Pear 7 2
GIven the provided variables, write a SINGLE call to the print function that generates the following output.
Fruit Amount
Apple
Pear
Peach
Hint: you may need to use the sep and end keyword arguments, as well as escape chracters
and to generate your output.
Here are some rules that you will need to follow to solve this part of the assignment:
Ensure that you leave your print call within the printtable function provided in the scaffolding, as this is what the autograder will call
Ensure that you are only writing one call to the print function. Our graders will only consider one line of code.
Do not use string literals in your call to the print function. The auto tester will be using different variable values, and you won't pass these tests if you "hard code" your values into the print function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
