Question: Creating data and looping through it a. In a for loop create a range of numbers from 1 to 5 and print them. b.
Creating data and looping through it a. In a for loop create a range of numbers from 1 to 5 and print them. b. Create this list - [1,5,2,10,4,7] - and find the cube root of every number in that list in a for loop. Append the result to a list called "c_root". c. Write a for loop such that it prints every alphabet in the string "Pneumonoultramicroscopicsilicovolcanoconiosis" in uppercase. d. Use this list ["Phil", "Oz", "Seuss", "Dre"], and append the letters "Dr." in front of each name in the list. e. Write a for loop which appends the data type of each element in the first list to a second list. First List = [3.14, 66, 'Bear', {}, True, [], '51'].
Step by Step Solution
There are 3 Steps involved in it
a Heres a Python code snippet for the first part ans Part a for num in range1 6 ... View full answer
Get step-by-step solutions from verified subject matter experts
