CBSE Class 11 Computer Science Question 67 of 98

Python Programming Fundamentals — Question 29

Back to all questions
29
Question

Question 20(e)

Find out the error(s) in the following code fragment:

Print ("X =" X)
Answer

There are two errors in this code fragment:

  1. Variable X is undefined.

  2. "X =" and X should be separated by a comma like this print("X =", X)