πŸ“Š Python
Q. What will be the output of the following Python program?
Code:
def addItem(listParam):
    listParam += [1]
 
mylist = [1, 2, 3, 4]
addItem(mylist)
print(len(mylist))
  • (A) 5
  • (B) 8
  • (C) 2
  • (D) 1
πŸ’¬ Discuss
βœ… Correct Answer: (A) 5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
526
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
99%
Success Rate