Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A very important technique is to compare values against each other and make a decision:

 

Code Block
if (mass >= 100 and friction == 0.001):
	do something
 
if (velocity >= 5.0 or velocity <= 10.0):
	do something

if (name == "Rocket01"):
	do something