Why does the code below return the error "SyntaxError: invalid syntax"
If(amount_paid==12):
I know it's basic but just starting out learning Python in Visual Studio Code
Thanks for any help,
Phil
Why does the code below return the error "SyntaxError: invalid syntax"
If(amount_paid==12):
I know it's basic but just starting out learning Python in Visual Studio Code
Thanks for any help,
Phil
Most things in Python are case-sensitive. Here, that's the if construct -- If amount_paid == 12: is not well formed, but if amount_paid == 12: is.
Try making If lowercase (make the "I" lowercase)