Question

PLEASE USE PYTHON***

11.2 Create a numpy array with values 10, 11, ..., 49 and give it to a variable named var. Then print out var

0 0
Add a comment Improve this question Transcribed image text
Answer #1

import numpy as np

# create a list from 11 to 49

var = np.linspace( 11 , 49 , num = 39 )

print(var)

Sample Output

[11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45.46. 47. 48. 49.]

Add a comment
Know the answer?
Add Answer to:
PLEASE USE PYTHON*** 11.2 Create a numpy array with values 10, 11, ..., 49 and give...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT