Question: Develop the main() function to call three functions in Python as follows: start() function to prompt user for a positive integer n with error checking

Develop the main() function to call three functions in Python as follows:

  1. start() function to prompt user for a positive integernwith error checking and meaningful error messages.
  2. roll() function to roll dice of 1-to-6n
  3. stat() to generate and report counts and percentage distribution in text.
  4. Each function should include compact and meaningful doc-string explanation.
  5. No global nor module-level variable is permitted.
  6. No NumPy, Pandas, nor any analytical module is permitted.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!