Please tell me the syntax error

Asked 2 weeks ago, Updated 2 weeks ago, 1 views

x=int (input: )
y=int (input: )
while x>=y:
print("Part =",n"Remaining =",x)

I made a program to divide the task into tasks and save the shares and the rest with repetitive sentences without the remaining operators, but a syntax error appears in the first line. I wonder which part is wrong.


2022-09-20 16:22

1 Answers

x=int("subject :")
y=int("input :")

A string must be entered within the input. It's because there's no quotation mark in the code you wrote

2022-09-20 16:22

If you have any answers or tips

© 2022 pinfo. All rights reserved.