Question: Write a Python program using the while loop to generate exactly the same list as the following expression evaluates to: [bumbum*2 for bumbum in range(30)

Write a Python program using the while loop to generate exactly the same list as the following expression evaluates to:

[bumbum*2 for bumbum in range(30) if bumbum % 3 == 0 and bumbum > 12]

Output: [30, 36, 42, 48, 54]

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!