#MonthOfCode - hello world
import random | |
graal = [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100] | |
binf,bsup = min(graal),max(graal) | |
k = 0 | |
while( k<len(graal) ): | |
attempt = list() | |
for i in xrange(len(graal)): | |
attempt.append( random.randint( binf, bsup)) | |
if (graal[k] ==attempt[k]): | |
print ' '.join( [chr(code) for code in attempt] ) | |
k+=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
screenshot available on twitter @spartangeek