Demo entry 6799707

sdf

   

Submitted by anonymous on May 21, 2019 at 11:11
Language: Python 3. Code size: 375 Bytes.

import random  
pocetnosti_suctov = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]     #[1]  
for hod in range(1000):                     #[2]  
    padnute_cislo1 = random.randint(1, 6)               #[3]  
    padnute_cislo2 = random.randint(1, 6)               #[4]  
    pocetnosti_suctov [padnute_cislo1 + padnute_cislo2] += 1        #[5]  
print(pocetnosti_suctov)  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).