Question: What is displayed after the code below finishes executing? nums = [ 1 , 4 , 3 , 7 , 1 4 , 8 ,

What is displayed after the code below finishes executing?
nums =[1,4,3,7,14,8,23,16]
cnt =0
for n in nums:
if n%2==0 :
cnt +=1
print (cnt)
 What is displayed after the code below finishes executing? nums =[1,4,3,7,14,8,23,16]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!