Computer Science, asked by nitupradeeprawat001, 9 months ago

Also
(c) Re-write the following after removing errors
Underline the correction made
x = input ()
Y,Z=10,20
X=+y
Print (X ,Y ,Z+10)​

Answers

Answered by IAmAMissingColon
5

Hey !

Here's the answer

x = int(input())

y, z = 10, 20

x += y

print (x , y, z + 10)

Explanation for:

1. int(input())

Ans:

I converted the string which is take as input by default in Python so while printing the last statement it won't throw the TypeError.

2. x += y and not x =+ y

Ans:

As in Python += adds the value and assign the answer to the left so here was your error

I hope it helped you

Don't forget to mark it as THE BRAINLIEST ANSWER!

Similar questions