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
Get step-by-step solutions from verified subject matter experts
