Question: Genetic Algorithms in Python: Write a Python program that prompts the user to enter a weight for a rat. The program should also include constants

Genetic Algorithms in Python:

Write a Python program that prompts the user to enter a weight for a rat. The program should also include constants called MUTATE_PROB (which is the probability of mutating), MUTATE_MIN (which is the minimum possible mutation modifier) and MUTATE_MAX (which is the maximum possible mutation modifier). You can set these constants to whatever you think is appropriate.

The program should determine if the rat is mutated, and if so, determine the weight modifier and apply it to the rat weight. Print out the rat weight at the end.

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!