Very very basic python program

Need help to write python quick and easy beginner python scripts!!!

Make money quick and easy

1. write 3 python scripts that calculates ?

1.1 W. Leibniz (1646-1716) or James Gregory (1638- 1675): [url removed, login to view]~huberty/math5337/groupe/[url removed, login to view]

1.2 John Machin (1685-1751) [url removed, login to view]

1.3 William Brouncker (1620-1684) [url removed, login to view]

2. A random gambling script that illustrates the following:

In the game of "Lucky 7", the player rolls a pair of dices. If the sum of the two results is equal to 7, the player wins \$ 4, otherwise the player loses \$ 1.

The casino baits the players by announcing that there is multiple ways of winning : (1,6),(2,5),(3,4), etc....

Your challenge is to demonstrate them using a python script that is it useless to play this game.

The program should take as INPUT the amount of money the player wants to bet then play as long as it takes until the money is completely spent!

After, the program should display the number of times the dices were thrown and the hightest amount the player has reached during the game.

Taidot: Python

Tietoa työnantajasta:
( 3 arvostelua ) Quebec, Canada

Projektin tunnus: #4234972

Myönnetty käyttäjälle:

andriy3s

Hi, I'm mathematician and can do this for you.

\$15 USD / tunti
(4 Arvostelua)
2.3