Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

just (a) and (c) in PYTHON (a) Use np.zeros to array with 50 entries whose values are all zero and store it in a variable.

just (a) and (c)
in PYTHON
image text in transcribed
(a) Use np.zeros to array with 50 entries whose values are all zero and store it in a variable. Then, set entry 3 to 0.5. (b) Create an array whose entries run from 0 to 99 inclusive, in steps of 11. (The first few entries should be 0,11,22.) (c) Create an array whose final size is 300 , and whose entries repeat the pattern 1,2,6,12,6, (hint: np.tile). Use an if statement and a print statement with your favorite exclamation of success, which verifies the length of the array you created is actually 300

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions