Question 11 - Week 6 Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Programing with python
Go to chapter
Week 6
Question 11
00:00
Est. 2 min
Marks:
+3.00
0.00
Consider the following snippet of code. What will the output be? ``` val = 0 L = [9, 1, 5, 4, 2] temp = [] for num in L: if num % 2 != 0: temp.append(num) else: val += num print(len(temp) * val) ```
Integer answer
Medium Difficulty
23 February 2025
Your answer