Computer Science
Find out the error(s) in following code fragment:
print("X ="X)
Python Funda
18 Likes
Answer
There are two errors in this code fragment:
- Variable X is undefined
- "X =" and X should be separated by a comma like this print("X =", X)
Answered By
11 Likes
Related Questions
Find out the error(s) in following code fragment:
a, b, c = 2, 8, 9 print (a, b, c) c, b, a = a, b, c print (a ; b ; c)
Find out the error(s) in following code fragment:
X = 24 4 = X
Find out the error(s) in following code fragment:
else = 21 - 5
What will be the output produced by following code fragment:
X = 10 X = X + 10 X = X - 5 print (X) X, Y = X - 2, 22 print (X, Y)