Menu
Home
AI
Machine Learning
Data Science
Python
Interview Questions
Python question of the day
What would be the output of executing the following code:
list1 = ['Hi', 'python'] len(list1.extend(list(range(3))))
3
4
5
TypeError
Explanation:
In python, extend method returns
None
and len of None results in TypeError
Top 100 python interview questions: