Aug-07-2017, 01:01 AM
import random rolls = int(input('Number of rolls: ')) for roll in rolls: dice = random.choice(list(range(1,7))) print(dice)
My first try with python
|
|
Messages In This Thread |
My first try with python - by MaxAim - Aug-06-2017, 11:15 PM
RE: My first try with python - by wavic - Aug-07-2017, 01:01 AM
RE: My first try with python - by micseydel - Aug-07-2017, 03:47 PM
RE: My first try with python - by MaxAim - Aug-07-2017, 08:32 PM
RE: My first try with python - by nilamo - Aug-07-2017, 09:01 PM
|