Bots make choices with if and else. If the test is true, the indented lines under if run. Otherwise the lines under else run.
coins = 3
if coins > 5:
print("Shop time!")
else:
print("Keep saving.")Keep saving.
Put a colon at the end of the if and else lines, and 4 spaces before the lines inside them. < means "less than".
battery = 15 on its own line.battery is less than 20, print Low power...else), print Feeling great! The checker also tries battery = 80.The test is battery < 20. Colon after the if line and after else. Indent each print by 4 spaces.
battery = 15
if battery < 20:
print("Low power...")
else:
print("Feeling great!")Press "Talk it out" at the top. Our Discord opens soon; until then email us and paste your code.