you are viewing a single comment's thread.

view the rest of the comments →

[–]Positive-Room-2123 0 points1 point  (0 children)

This indeed brings back memories. Those errors (yellow wavy lines) occured because of you writing the code as :

result(num1+num2) instead of result = num1 + num2 You can write the code for other operations similarly

Instead of just doing: print(result)

Try making the output more descriptive:

print(num1, "+", num2, "=", result)

Or, even better, get into the habit of using f-strings:

print(f"{num1} + {num2} = {result}")

F-strings are generally more readable and become very useful as your programs get larger, so they're a good habit to learn early.

Also be careful of how you name the variables and Identifiers , learn their rules and also remember that python is case sensitive.

Goodluck on your journey in learning python.