Answer the question
In order to leave comments, you need to log in
Invalid syntax in IDLE how to understand what is wrong?
I'm just starting to learn Python. I'm writing the simplest task in IDLE, but it gives out invalid syntax:
It seems that I'm doing everything right. How to understand what exactly is the error? What's wrong?
The code
profit = 0.23 #задать переменную ежегодной прибыли
total_profit = planned_sales_volume * profit
planned_sales_volume = int(input("Введите плановый объем продаж: ") #задать переменную для ввода новой суммы объема продаж
print(total_profit) #вывести прибыль от объма продаж
Answer the question
In order to leave comments, you need to log in
total_profit should preferably be after planned_sales_volume. You can use another code editor that shows syntax errors. For example: PyCharm, Visual Studio Code
In the first line, it is not known where the variable planned_sales_volume came from ...
In the line , the
planned_sales_volume = int(input("Введите...
bracket is not closed
, too lazy to look further ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question