Answer:
1 bracket, instead of 2 is closed in line 9
Explanation:
Given
The attached code
Required
Why is line 10 a syntax error?
The error points to line 10.
From the attached code, the line 9 is:
amount = int(input("Enter cheese order weight: ")
When converting an input to integer, the syntax is:
variable = int(input("Prompt"))
But, only 1 bracket is closed in the program, where 2 is required.
This is definitely a syntax error
Answer: theres only one bracket
Explanation: got it right on edgen
x = 0
while x < 4:
print(x)
x += 1
Make it a for loop
Answer: Here you go :)
Explanation:
x = 0
for n in range(4):
print(x)