jeudi 26 mars 2015

Dividing two integers


divide=float(random.randint(1, 4))

divde2=float(random.randint(1, 12))

print("Hi", divide % divide2)


My task is to get two random.randint values which are:



  1. The first from 1 to 4

  2. The second from 1 to 12


The second random value should be divided by the first random value and the result must be rounded down.





Aucun commentaire:

Enregistrer un commentaire