Python Forum
My first try with python
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first try with python
#2
import random

rolls = int(input('Number of rolls: '))

for roll in rolls:
    dice = random.choice(list(range(1,7)))
    print(dice)
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


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

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020