Question: Using a for loop, create Pop _ half, a list that divides each country's population by 2 . b ) Create a Numpy array Pop

Using a for loop, create Pop_half, a list that divides each country's population by 2.
b) Create a Numpy array Pop_arr from the list Population, without using a loop.
c) Now, create "Pop_half_2", an array that divides the population of each country in Pop_arr by 2. Do Pop_half and Pop_half_2 have the same information? Are they of the the same type? Why/ Why not?
d) Create "Pop_double" an array that multiplies the population of each country by 2.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!