MCQs > IT & Programming > Python > Which line of code results in a compilation error? 1. c1 = { 'A' : 'B', 'C' : 19 } 2. c2 = { 'ID' , 47 } 3. sequ = ('A', 'C', 'D') 4. c1.update(c2) 5. print (str(c1)) 6. ct = dict.fromkeys(sequ,5) 7. print (str(ct))

Python MCQs

Which of the following lines of code results in a compilation error?

1. c1 = { 'A' : 'B', 'C' : 19 }

2.  c2 = { 'ID' , 47 }

3.  sequ = ('A', 'C', 'D')

4.  c1.update(c2)

5.  print (str(c1))

6.  ct = dict.fromkeys(sequ,5)

7.  print (str(ct))


Answer

Correct Answer:

Line number 1 

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it