Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~7K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Zahra_1

import random while True: dice = random.randrange(1,5) dice2 = random.randrange(1,7) dice3 = random.randrange(1,13) sides = int(input)("Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice. Type 0 to exit the loop.") if sides ==0: break elif sides ==4: print …

Member Avatar for Zahra_1
0
4K
Member Avatar for Zahra_1

![0930ac8855b75aa7c11605d2c389c3a5](/attachments/small/4/0930ac8855b75aa7c11605d2c389c3a5.PNG "align-left") here is the task, I don't want anyone to do the coding for me. I just would really love if I got a starting point on how to begin this code. thank you. oh and this is in python program.

Member Avatar for Zahra_1
0
222
Member Avatar for Zahra_1

how to create a loop that will make sure that my dice can be rolled as many times as required? here's my code as a start off. import random dice=random.randrange(1,5) dice2=random.randrange(1,7) dice3=random.randrange(1,13) sim=input (“Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice …

Member Avatar for sneekula
0
3K
Member Avatar for Zahra_1

in python, I want to code for the user to choose between a 4-sided dice, a 6-sided dice or a 12-sided dice. how do i do that?

Member Avatar for vegaseat
0
158
Member Avatar for Zahra_1

import random dice=random.randrange(1,5) dice2=random.randrange(1,7) dice3=random.randrange(1,13) sim=input (“Which sided dice would you like to roll? You can choose a 4-sided dice, a 6-sided dice or a 12-sided dice.”) if output=4 then print (“The 4-sided dice has rolled to”,dice) elif output=6 then print (“The 6-sided dice has rolled to”,dice2) elif output=12 then …

Member Avatar for vegaseat
0
237