Question: can you solve this in python please thanks in advnace 6. What prints out from each of the two code snippets? x = ['a', 'b',
6. What prints out from each of the two code snippets? x = ['a', 'b', 'a', 'b', 'a'] count = 1 for i in x: if i == 'b': print(count) count - count + 1 print (1) ########## x = ['a', 'b', 'a', 'b', 'a'] count - 1 for i in x: if i - 'D': print(count) count - count + 1 print(1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
