0

Help me with the question below and suggest me the correction needed in my program.

https://code.sololearn.com/c8l8TyK11hjN/?ref=app Make a class Die with one attribute called sides, which has a default value of 6.write a method called roll_die that prints a random number between 1 and the number of sides the die has. Make a 6 sided die and roll it 10 times. Make a 10 sided die and roll it 10 times. Make a 20 sided die and roll it 10 times.

12th Apr 2020, 10:09 AM
Ambika Insa
Ambika Insa - avatar
1 Antwort
+ 2
What problem you are facing? If you mean, printing order.. In line 8 write like print(x, endl=" ") instead of print(x) Line 9 add print() as an end statement in that function
12th Apr 2020, 10:21 AM
Jayakrishna 🇮🇳