Question: 1. 2. 3 . 6. 7. Create a single Python script (.py file) that accomplishes the following tasks. Create the list AL that contains the
1. 2. 3 . 6. 7. Create a single Python script (.py file) that accomplishes the following tasks. Create the list AL that contains the numbers 1 to 5 (inclusive). Creste the list BL that contains the odd numbers between 11 to 20 (inclusive) Create the list CL that contains the even numbers between 20 to 28 (inclusive) 4. Create the empty list Delta List. 5. Utilizing a while loop, multiply each element in AL by 5 and append each resulting value to DeltaList. Print DeltaList. Utilizing a for loop, sum all the values in DeltaList and assign the value to variable Delta Sum. Print DeltaSum. Utilizing a while loop, find the maximum value in DeltaList and assign this value to the variable DeltaMax. 10. Create the empty list GammaList. 11. Subtract DeltaMax from each element in BL and append each resulting value to Gamma List. 12. Print GammaList. 13. Utilizing a while loop, sum the values in CL and assign this value to the variable Tausum. 14. Utilizing a for loop, subtract TauSum from each value in AL and print only the differences that are even. The print operation must occur within the for loop. 15. Utilizing slicing, create the list Sigma which contains the first three elements of GammaList. 16. Print Sigma. 8. 9. -Inchn ander listed and remove any
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
