Write a function playnovicemarbles that given the number of


Write a function playNovice(marbles) that given the number of marbles returns a random number between 1 and half of the number of marbles.

>>> playNovice(90)

35

Test your function several times with numbers between 10 and 100


Question 2
Write a function userPlay(marbles) that asks the user for the number of marbles that he or she would like to take and returns that number. The function should keep asking the user for the number of marbles if he or she takes more than half of the marbles.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Write a function playnovicemarbles that given the number of
Reference No:- TGS0663326

Now Priced at $40 (50% Discount)

Recommended (94%)

Rated (4.6/5)