mercredi 19 septembre 2018

Replacing an if-statement

I can't use if statements and loops in my assignment so I was wondering how I would rewrite this line:

  if (not float(gravity).is_integer()):

It's just checking to see whether or not gravity is a float or integer so it can pass more code.

Aucun commentaire:

Enregistrer un commentaire