subject

Run the follwoing codes to get the output figure. Then change to codes to generate a histogram to show age data distribution around 50 with the number of 100 bins. After that, save the histogram to be 'png'. import matplotlib. pyplot as plt
import numpy as np

np. random. seed(5)
ages = [np. random. normal(loc=40,scale=10) for x in range(100)]
#ages distributed around 40
distributed around 40
plt. hist(ages, bins=45) #bins is the number of bars
plt. title("Ages per Population")
plt. xlabel("ages")
plt. ylabel("# of people")
plt. show()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:30
Hassan is writing his master’s thesis, which is a thirty-page document. he received some feedback from his professor in the form of comments, but does not see where the comments are. what is the fastest way for hassan to find the feedback?
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
question
Computers and Technology, 23.06.2019 00:00
What season was better from fortnite?
Answers: 2
You know the right answer?
Run the follwoing codes to get the output figure. Then change to codes to generate a histogram to sh...
Questions
question
Mathematics, 25.05.2021 17:00
question
Mathematics, 25.05.2021 17:00
question
Mathematics, 25.05.2021 17:00
question
Mathematics, 25.05.2021 17:00
question
Mathematics, 25.05.2021 17:00
Questions on the website: 13722363