Строка 6 else print('нехорошо') ^^^^^ SyntaxError: ожидается ':' [закрыто]Python

Программы на Python
Anonymous
Строка 6 else print('нехорошо') ^^^^^ SyntaxError: ожидается ':' [закрыто]

Сообщение Anonymous »

Код: Выделить всё

salary = int (input('enter your salary: \n'))
hours = int (input('enter your hours: \n'))
total_salary = salary * hours
if total_salary

Подробнее здесь: [url]https://stackoverflow.com/questions/78798981/line-6-else-printnot-good-syntaxerror-expected[/url]

Вернуться в «Python»