Skip to content

Instantly share code, notes, and snippets.

View DiegoGallegos4's full-sized avatar
🏠
Working from home

Diego Gallegos DiegoGallegos4

🏠
Working from home
View GitHub Profile
@DiegoGallegos4
DiegoGallegos4 / algo.py
Created August 5, 2019 17:44 — forked from howCodeORG/algo.py
howCode's Simple Genetic Algorithm in Python
import random
population = 200
generations = 0
mutation = 0.01
alphabet = "abcdefghijklmnopqrstuvwxyz! "
target = "subscribe to howcode!"
output = ""
data = []