Question: 3 . Write a function called roll _ again that has a single string parameter to hold a player's name. In the function: a )
Write a function called rollagain that has a single string parameter to hold a player's
name. In the function:
a Enter a while loop which repeats the following steps:
Ask whether the player would like to roll again, using the following message:
Roll again, Ziggy? YN
There is a single space after YN
If the player answers with Y y N or n exit from the loop.
Otherwise print the following message replacing XXX with the users entry:
I don't understand: XXX Please enter either Y or N
b The function returns either True or False depending on whether the player wants to
roll again
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
