Question: **PYTHON ONLY** Every week a vampire has to bite a human and turns them into another vampire. Therefore, the number of vampires after each week

**PYTHON ONLY**

Every week a vampire has to bite a human and turns them into another vampire. Therefore, the number of vampires after each week doubles. ( If we start out with 1 vampire, after a week we have 2 vampires, after another week we have 4 vampires, then 8, etc.

1) Ask the user for how many weeks they want to run the simulation for and then output the vampire population at the end.

How many weeks? :

4

The earth has 16 vampires after 4 weeks.

2) If the number of vampires is greater than the number of humans then stop your loop. The final output will show that there are no humans left and how many weeks it took to wipe us out.

How many weeks? :

200

The human population was destroyed after just *x* weeks.

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 Databases Questions!