Este blog contém pus!

Ligeiramente parvo

>>> F’Tang >>> Eleição, 81

# Do módulo RANDOM vamos importar a função CHOICE, que pseudo-aleatóriamente escolhe um elemento de uma lista (e.g. choice( [ “” , “F’Tang” ] ))
# Caso saia o elemento F’Tang (ou P’Schugh) existe 50% de probabilidade de se repetir o mesmo elemento

NomeParvo.py

from random import choice
def Gerador_de_Nome_Parvo( a , Nomes , Im ) :
        Nome_Parvo = [ ]
        while a > len( Nome_Parvo ) + 1 :
                b = choice( Nomes )
                if b in ( “Fin” ,  “Tim” ,  “Lim” ,  “Bim” ,  “Whim” ) :
                        b += choice( Im )
                elif b == “F’Tang” or b == “P’Schugh” and a > len( Nome_Parvo ) + 1 :
                        if choice( [ “” , “F’Tang” ] ) == “F’Tang” or choice( [ “”“P’Schugh” ] ) == “P’Schugh” :
                                Nome_Parvo.append( b )
                Nome_Parvo.append( b )
        return “Tarquin “ + ” “.join( Nome_Parvo )
Nome = [ “Fin” , “Tim” , “Lim”“Bim” , “Whim” , “Ole” ]
Nome_Ligeiramente_Parvo = [ “Bus” , “Stop” , “F’Tang” , “Biscuit” , “Barrel” ]
Nome_Muito_Parvo = [ “Big” , “Ben” , “P’Schugh” , “Five” , “O’Clock” ]
Im = [ “-fin” , “-tim” , “-lim” , “-bim” , “-whim” ]
if raw_input( “Gerador de Nome Parvo\n\n(L)igeiramente Parvo\n(M)uito Parvo\n\nQue genero de nome queres? “ )[0].upper() == “L” :
        for i in Nome_Ligeiramente_Parvo :
                Nome.append( i )
else :
        for i in Nome_Muito_Parvo :
                Nome.append( i )
a = input( “\nQuantos apelidos queres? “ )
Nome_Parvo = Gerador_de_Nome_Parvo( a + 1 , Nome , Im )
print “\n” , Nome_Parvo
raw_input()

# (elif) else + if

>>> import NomeParvo
Gerador de Nome Parvo

(L)igeiramente Parvo
(M)uito Parvo

Que genero de nome queres? L

Quantos apelidos queres? 258

Tarquin Barrel Bus Biscuit Barrel Stop Barrel Lim-bim Whim-fin Stop Whim-lim Stop Barrel Stop Whim-fin Bus Ole Barrel F’Tang F’Tang Biscuit Biscuit Lim-bim F’Tang Biscuit F’Tang F’Tang Bus Barrel Ole Ole F’Tang F’Tang F’Tang Fin-tim Lim-lim Bim-whim F’Tang F’Tang Bus F’Tang F’Tang Stop Ole Barrel Ole Fin-whim Barrel F’Tang F’Tang Stop Fin-fin Bus F’Tang Biscuit Bim-bim Tim-tim Tim-fin Stop Tim-lim Whim-fin Bus Tim-whim F’Tang F’Tang Bus Barrel Barrel Fin-bim Whim-lim Biscuit Bim-fin Bim-whim Whim-whim Biscuit Bus Barrel Whim-fin Bim-fin Whim-tim Biscuit Fin-tim Bus Barrel Bus Stop Stop Tim-lim Ole Ole Bus Tim-fin Biscuit Whim-fin Fin-bim Biscuit Stop Stop Barrel Fin-lim Stop Whim-fin Bim-bim Tim-whim Lim-lim Barrel Ole Tim-tim Biscuit Stop Tim-whim Biscuit Bim-bim Lim-lim Bus Bim-fin Barrel Fin-lim Stop Lim-whim Bim-bim Bim-lim F’Tang F’Tang Fin-bim Biscuit Lim-tim F’Tang F’Tang Stop Bus F’Tang Bim-tim Lim-whim Barrel F’Tang F’Tang Barrel Bus Whim-fin Whim-bim Tim-tim Tim-bim Whim-tim F’Tang Lim-fin Biscuit Whim-tim Lim-whim Lim-tim Barrel Tim-tim Stop Biscuit Tim-whim Lim-lim Biscuit Biscuit Biscuit Barrel F’Tang F’Tang Bus Biscuit Ole Lim-fin F’Tang Bus Lim-whim Biscuit Tim-bim Whim-bim Stop Barrel Tim-lim Whim-fin Stop Bus Lim-fin Lim-bim Ole Bim-whim Stop Ole Whim-tim Barrel Ole Ole Lim-fin Whim-bim Lim-lim Lim-fin Fin-fin Bus Bus Lim-whim Whim-tim Stop Fin-whim Barrel Whim-tim Bim-whim Fin-bim Tim-fin Ole Ole Fin-lim Lim-whim Lim-lim Barrel Ole F’Tang F’Tang F’Tang F’Tang Bim-whim Biscuit Fin-lim Whim-fin F’Tang F’Tang Whim-lim Ole Bus Ole Barrel Fin-whim Barrel Ole Stop Tim-lim Barrel Bus Stop Fin-tim Lim-bim Bim-whim Fin-tim Stop Lim-tim Stop Barrel Stop Bim-bim Ole Bus Ole Tim-bim Ole Fin-tim Stop Tim-bim Whim-lim Whim-lim Biscuit Lim-bim Barrel Biscuit F’Tang

>>> import NomeParvo
(L)igeiramente Parvo
(M)uito Parvo

Que genero de nome queres? M

Quantos apelidos queres? 258

Tarquin Whim-whim Tim-lim Ole Big Five Ben Five O’Clock Whim-tim Five Whim-whim Bim-bim Ole Ben Bim-whim Whim-bim Bim-tim Ole Lim-fin Whim-whim P’Schugh P’Schugh P’Schugh P’Schugh P’Schugh Big Fin-lim Fin-whim Five Big Fin-whim Big Whim-bim Ole Ole Tim-fin Ben Five Fin-whim Ole Lim-whim O’Clock Five Lim-whim Ole Tim-bim Ben Whim-fin Ole Ben P’Schugh P’Schugh Bim-bim Lim-fin Lim-tim Lim-whim Tim-lim O’Clock Whim-lim Ben Ben Big P’Schugh P’Schugh P’Schugh Ben Bim-fin Whim-tim Lim-whim Ben Big Bim-whim Lim-whim Tim-lim Fin-lim Tim-whim Whim-tim Tim-fin Ole Big P’Schugh P’Schugh P’Schugh Ole Lim-fin Ole P’Schugh P’Schugh Fin-tim Five Ben Big Five Fin-bim Bim-tim Five Bim-whim Big Whim-whim Ole P’Schugh P’Schugh Ole P’Schugh P’Schugh O’Clock Ole Ole O’Clock P’Schugh P’Schugh Ole Bim-whim Big Five Whim-bim Lim-lim Bim-lim Whim-tim Five O’Clock Bim-bim Tim-bim Lim-tim Big Lim-fin Lim-tim Fin-fin Ben O’Clock Tim-fin Tim-bim O’Clock Lim-whim O’Clock O’Clock Ben Tim-lim Tim-lim Big Ben Fin-fin Lim-tim Lim-lim O’Clock Whim-fin P’Schugh P’Schugh P’Schugh P’Schugh Ben Ben P’Schugh P’Schugh Five Ole Fin-lim Tim-whim Ole Tim-lim Fin-lim Ben Big Tim-bim Ole Five Whim-whim Whim-tim Five Ole Ole Big Ole Ben Five P’Schugh Whim-tim Big Big Whim-tim Five Big P’Schugh Whim-lim Lim-fin Five Ben Fin-fin Lim-fin O’Clock Bim-lim P’Schugh P’Schugh Ole Lim-whim Five Ole Five Ben Five Lim-lim Ben Five Tim-lim Bim-bim Five Ben O’Clock Five Bim-lim Big Fin-fin Bim-lim Bim-bim Ole Tim-bim Bim-bim O’Clock O’Clock Bim-whim Five Fin-tim Ole Lim-tim Lim-lim Lim-whim O’Clock O’Clock P’Schugh P’Schugh Fin-bim Tim-lim O’Clock Whim-fin Whim-whim Fin-bim Ole Five O’Clock Fin-fin Big Big Big P’Schugh P’Schugh Five P’Schugh Big O’Clock Lim-tim Ole Tim-tim Lim-whim Whim-tim Lim-bim Ben Ole Lim-whim

PITÃO <<<

 

Deixe uma Resposta

Preencha os seus detalhes abaixo ou clique num ícone para iniciar sessão:

Logótipo da WordPress.com

Está a comentar usando a sua conta WordPress.com Terminar Sessão / Alterar )

Imagem do Twitter

Está a comentar usando a sua conta Twitter Terminar Sessão / Alterar )

Facebook photo

Está a comentar usando a sua conta Facebook Terminar Sessão / Alterar )

Google+ photo

Está a comentar usando a sua conta Google+ Terminar Sessão / Alterar )

Connecting to %s