Skip to content

Instantly share code, notes, and snippets.

@fmasanori
Created April 8, 2014 21:54
Show Gist options
  • Save fmasanori/10198873 to your computer and use it in GitHub Desktop.
Save fmasanori/10198873 to your computer and use it in GitHub Desktop.
Guess girl names
import random
girls = '''Júlia Sophia Isabella Manuela Giovanna Alice Laura
Luiza Beatriz Mariana Yasmin Gabriela Rafaela Isabelle Lara
Letícia Valentina Nicole Sarah Vitória Isadora Lívia Helena
Lorena Clara Larissa Emanuelly Heloisa Marina Melissa Gabrielly
Eduarda Rebeca Amanda Alícia Bianca Lavínia Fernanda Ester
Carolina Emily Cecília Pietra Milena Marcela Laís Natália
Maria Bruna Camila Luana Catarina Olivia Agatha Mirella
Sophie Stella Stefany Isabel Kamilly Elisa Luna Eloá Joana
Mariane Bárbara Juliana Rayssa Alana Caroline Brenda Evelyn
Débora Raquel Maitê Ana Nina Hadassa Antonella Jennifer
Betina Mariah Sabrina'''.split()
girls.sort()
print (' '.join(girls))
secret = random.choice(girls)
guess = ''
while guess != secret:
guess = input('Guess: ')
if guess == secret:
print ('You win!')
elif guess > secret:
print ('High')
else:
print ('Low')
print ('End of the game!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment