Question: ( Six - sided Die ) Write a program called die.py that simulates the roll of a six - sided die, and writes to standard

(Six-sided Die) Write a program called die.py that simulates the roll of a six-sided die, and writes to standard
output the pattern on the top face.
Set value to a random integer [1,6]; set output to an appropriate string based on value; The string format is ".....
.....
", where each . is either a space or a *. For example, if value =6, the string should be "***
***"
Write output.

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!