E
E
Evgeny Morozov2021-08-09 12:06:59
Python
Evgeny Morozov, 2021-08-09 12:06:59

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:
6110ef2b796b5304751774.jpeg

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

3 answer(s)
S
Sergey Gornostaev, 2021-08-09
@beginner_Python

The int brackets are not closed.

D
Dream, 2021-08-09
@dreameddd

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

V
Vladimir Kuts, 2021-08-09
@fox_12

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 question

Ask a Question

731 491 924 answers to any question