Please tell me the syntax error

Asked 2 years ago, Updated 2 years ago, 18 views

x=int (input: )
y=int (input: )
n=0
while x>=y:
    x=x-y
    n=n+1
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.

python

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


© 2024 OneMinuteCode. All rights reserved.