Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Just problems 5-7, problems 1-4 have already been solved. #3 Questions - 1-2 island_names = [a,b,c,d,e] okina=uu02BB a = hawai + okina + i b

image text in transcribed

Just problems 5-7, problems 1-4 have already been solved.

#3 Questions - 1-2 island_names = [a,b,c,d,e] okina=u"\u02BB" a = "hawai" + okina + "i" b = "O" + okina + "ahu" c = "Maui" d = "Kaua" + okina + "i" e = "Ni" + okina + "ihau"

#3 Questions - 3 for i in island_names: print(i) #3 Questions - 4 def split(li): lis=[] for i in li: lis.append(i) return lis tup = (3,4,2) print(tup)

1. Create a new code cell for each problem below and type in the code. 2. Create a list with at least the names of four Hawaiian Islands. If desired you can write the 'okina as u"\u02BB". For example to write hawai'i, we would type, okina-u"\u02BB" a="hawai" + okina + "1" 3. Iterate through the list and print the contents. 4. Create a tuple containing three elements: the integers 3, 4, and 2 in that order. 5. Create a numpy three dimensional array of 64 bit floats with the shape from the previous problem, and initialize with zeros. 6. Set the 0,0,0th entry of the matrix to be 1/3. Now iterate through the array using three for loops. In each successive location from the 0,0,1th location, write the square root of the number from the previous location. Repeat the same with np.nditer. 7. Iterate through the array using np.nditer and print out each value. 1. Create a new code cell for each problem below and type in the code. 2. Create a list with at least the names of four Hawaiian Islands. If desired you can write the 'okina as u"\u02BB". For example to write hawai'i, we would type, okina-u"\u02BB" a="hawai" + okina + "1" 3. Iterate through the list and print the contents. 4. Create a tuple containing three elements: the integers 3, 4, and 2 in that order. 5. Create a numpy three dimensional array of 64 bit floats with the shape from the previous problem, and initialize with zeros. 6. Set the 0,0,0th entry of the matrix to be 1/3. Now iterate through the array using three for loops. In each successive location from the 0,0,1th location, write the square root of the number from the previous location. Repeat the same with np.nditer. 7. Iterate through the array using np.nditer and print out each value

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

State the uses of job description.

Answered: 1 week ago

Question

Explain in detail the different methods of performance appraisal .

Answered: 1 week ago