Question 21 - 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 21
00:00
Est. 2 min
Marks:
+3.00
0.00
Consider the following snippet of code. What will the output be? ``` val = 0 L = [7, 1, 8, 3, 10] temp = [] for num in L: if num % 2 == 0: temp.append(num) else: val += num print(len(temp) * val) ```
Integer answer
Medium Difficulty
07 July 2024
Your answer