Difference between revisions of "Testing"
Line 27: | Line 27: | ||
</pre> | </pre> | ||
− | <code> | + | <html><code> |
# code - http://rosettacode.org/wiki/Evolutionary_algorithm | # code - http://rosettacode.org/wiki/Evolutionary_algorithm | ||
Line 38: | Line 38: | ||
minmutaterate = .09 | minmutaterate = .09 | ||
C = range(100) | C = range(100) | ||
− | </code> | + | </code></html> |
Turkish
A B C D E F G H I J K L M N O P R S T U V Y Z a b c d e f g h i j k l m n o p r s t u v y z Ç ç Ğ ğ İ ı Ö ö Ş ş Ü ü
English
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z
SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace
# code - http://rosettacode.org/wiki/Evolutionary_algorithm from string import letters from random import choice, random target = list("METHINKS IT IS LIKE A WEASEL") charset = letters + ' ' parent = [choice(charset) for _ in range(len(target))] minmutaterate = .09 C = range(100)
# code - http://rosettacode.org/wiki/Evolutionary_algorithm
from string import letters
from random import choice, random
target = list("METHINKS IT IS LIKE A WEASEL")
charset = letters + ' '
parent = [choice(charset) for _ in range(len(target))]
minmutaterate = .09
C = range(100)
hkilter.com by H. K. Ilter is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
© 2020 H. K. Ilter