# Programming: Homework 2 Code1

Programming: Homework 2 Code1.

As you continue privateEssaywriters.com has the top and most qualified writers to help with any of your assignments including how to manage stress in workplaces. All you need to do is place an order with us (Programming: Homework 2 Code1).

## Programming: Homework 2 Code1

### Solution

#### Roll a dice Function 1

import random

allcount = 0
for loopcouter in range(6):
count = [0]*5
for i in range(5):
while True:
dice = random.randint(1,6)
count[i] += 1
if dice == 6:
break
allcount += max(count)

averagecount = allcount // 6

print(“the total number of throws is”, allcount)
print(“the average number of throws is”, averagecount)

Roll a dice 6000X

As you continue privateEssaywriters.com has the top and most qualified writers to help with any of your assignments including how to manage stress in workplaces. All you need to do is place an order with us (Programming: Homework 2 Code1).

#### Total face 1

allcount = sum(max((1 + sum(1 for _ in iter(lambda: randint(1, 6), 6)))
for _ in range(1)) for _ in range(6000))
averagecount = allcount // 6000
print(“the total number of total face 1”, allcount)

#### Total face 2

allcount = sum(max((1 + sum(1 for _ in iter(lambda: randint(1, 6), 6)))
for _ in range(2)) for _ in range(6000))
averagecount = allcount // 6000
print(“the total number of total face 1”, allcount)

As you continue privateEssaywriters.com has the top and most qualified writers to help with any of your assignments including how to manage stress in workplaces. All you need to do is place an order with us (Programming: Homework 2 Code1).

#### Total face 6

allcount = sum(max((1 + sum(1 for _ in iter(lambda: randint(1, 6), 6)))
for _ in range(6)) for _ in range(6000))
averagecount = allcount // 6000
print(“the total number of total face 1”, allcount)

As you continue privateEssaywriters.com has the top and most qualified writers to help with any of your assignments including how to manage stress in workplaces. All you need to do is place an order with us (Programming: Homework 2 Code1).

## Health Care Systems Essay Examples

As you continue privateEssaywriters.com has the top and most qualified writers to help with any of your assignments including how to manage stress in workplaces. All you need to do is place an order with us (Programming: Homework 2 Code1).