1. Engineering
  2. Computer Science
  3. write a code in python that requests that a person...

Question: write a code in python that requests that a person...

Question details

Write a code in python that requests that a person enters two numbers, the first represents the number of dice, the second the number of sides on their dice, then using a while statement, prints out a row of random numbers. The row will contain one random number that is within the number of sides on the die, for each dice (die). Use a while statement with the “range” function. Be sure to import the “random” module.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution