Answer to Question #114361 in Python for Lorenzo

Question #114361
Instructions
Write a program that uses an initializer list to store the following set of numbers in an array named nums. Then, print the array.

14 36 31 -2 11 -6
1
Expert's answer
2020-05-07T14:17:33-0400

import numpy as np


nums_list = list([14, 36, 31, -2, 11, -6])

print(nums_list)

print(type(nums_list))


nums = np.asarray(nums_list)

print(nums)

print(type(nums))


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS