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?
Zahra_1 0 Newbie Poster
Recommended Answers
Jump to PostMaybe something simple like ...
sides = int(input("Dice has how many sides, 4, 6, or 12? "))
All 4 Replies
sneekula 969 Nearly a Posting Maven
woooee 814 Nearly a Posting Maven
Zahra_1 0 Newbie Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.