06.0 Python‎ > ‎Python Projects‎ > ‎Dice Project‎ > ‎

Dice v4-input

Objectives

The student include the following new concepts:
  • allow the user to input
  • convert the user input to an integer
The student will practice the following familiar concepts:
  • learning objectives from the previous Dice programs 
  • update program documentation   """docstring"""
Code Examples you need are in the stub program below

Program Description

BEFORE MODIFYING YOUR PROGRAM, CREATE A COPY OF IT TO KEEP
  • modify your most advanced version of your Dice program to allow the user to input number of sides on the dice and the number of times the dice is to be rolled.
  • if the user provides an invalid number of side, set the number of side to 6
  • if the user provides an invalid number of times the dice is to be rolled, set the number of rolls to 10

Comments