Jump to content
BrainDen.com - Brain Teasers

Leaderboard

Popular Content

Showing content with the highest reputation on 11/14/15 in all areas

  1. Based on this exacting 1000 time simulation of the best night of your high school life, you got very lucky!! BTW, this code works fine. from random import randint def he_gets_the_bottle(): if randint(0,9) == 1: return True def it_points_to_uma(): if randint(0, 9) == 1: return True def bonanova_gets_a_kiss(): if he_gets_the_bottle() and it_points_to_uma(): return True kisses = 0 for i in range(1000): if bonanova_gets_a_kiss(): kisses += 1 print kisses
    1 point
×
×
  • Create New...