Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

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

Step: 1

a Heres a Python code snippet for the first part ans Part a for num in range1 6 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions