Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

It's pointing at the less than sign saying invalid syntax

$
0
0
weight = float(input("What is your weight:", ))height = float(input("How tall in inches are you:", ))BMI = weight * 703/heightif person_weight >= 18.5 or <= 25:    print("You have optimal weight!")elif person_weight < 18.5:    print("You are underweight, start eating more!")elif person_weight > 25:    print("You are OVERWEIGHT do something with your life!")

This is what happened:

File "main.py", line 4    if person_weight >= 18.5 or <= 25:                            ^SyntaxError: invalid syntax** Process exited - Return Code: 1 **Press Enter to exit terminal

I tried running the 18.5 and the 25 on opposite sides but that didn't work.


Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>