CBSE Class 11 Informatics Practices Question 71 of 102

Python Programming Fundamentals — Question 32

Back to all questions
32
Question

Question 23(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)