Différences entre les versions de « Utilisateur:Eloïse Spencer »

De {}
Aller à la navigation Aller à la recherche
 
(6 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
<syntaxhighlight lang="python">
+
Idée Bot :
  
from typing import Literal
+
Un bot twitter qui répond aux mentions des noms des joueurs de l'équipe féminine d'anderlecht en précisant leurs signes astrologique.
 +
ex : un tweet qui dit "Hazel Engelen a empêché un but !" et le bot répond "c'est parce ce qu'elle est scorpion"
  
  
print ("C'est quoi ton signe astrologique?")
 
  
signe = input ("je suis ")
 
  
print ("d'accord, alors tu es")
 
#le f dis qu'il y a une variable
 
  
if signe == "bélier":
+
<syntaxhighlight lang="python">
    print ("quelqu'un de très intense")
+
from typing import Literal
 +
import random
 +
import time'''
  
elif signe == "taureau":
 
    print ("quelqu'un qui fait tomber amoureux tout le monde")
 
  
elif signe == "cancer":
+
print ("C'est quoi ton mois de naissance?")
    print ("un bébé en manque d'amour")
 
  
elif signe == "gémeaux":
+
mois = input ("je suis né.e en ")
    print ("incompréhensible")
 
  
elif signe == "lion":
+
print ("d'accord, alors tu es")
    print ("le meilleur signe du zodiac")
 
 
 
elif signe == "vierge":
 
    print ("super fort.e en communication")
 
 
 
elif signe == "balance":
 
    print ("en recherche constante d'équilibre")
 
 
 
elif signe == "scorpion":
 
    print ("super sexy")
 
 
 
elif signe == "sagittaire":
 
    print ("un petit diable hyperactif")
 
 
 
elif signe == "capricorne":
 
    print ("assez terrifiant.e")
 
 
 
elif signe == "verseau":
 
    print ("en recherche constante de toi même")
 
 
 
elif signe == "poissons":
 
    print ("dans ton petit monde rêvé")
 
 
 
else:
 
    print (" né quel mois? ")
 
    mois = input("je suis né en ")
 
  
 
if mois == "janvier":
 
if mois == "janvier":
Ligne 60 : Ligne 29 :
 
         print ("Ah tu es verseau Uwu")
 
         print ("Ah tu es verseau Uwu")
  
elif mois == "février":
+
elif mois == "fevrier":
 
     print ("alors tu es Verseau ou Poissons, tu es né quel jour?")
 
     print ("alors tu es Verseau ou Poissons, tu es né quel jour?")
 
     jour = input ("le ")
 
     jour = input ("le ")
Ligne 110 : Ligne 79 :
 
     jour = int(jour)
 
     jour = int(jour)
 
     if jour <= 21:
 
     if jour <= 21:
         print ("Tu es cancer, mais ça va aller t'inquiète pa")
+
         print ("Tu es cancer, mais ça va aller t'inquiète pas")
 
     else:
 
     else:
 
         print ("Heyyyyy salut le lion, tu brilles comme le soleil de jour comme de nuit toi")   
 
         print ("Heyyyyy salut le lion, tu brilles comme le soleil de jour comme de nuit toi")   
Ligne 158 : Ligne 127 :
 
     else:
 
     else:
 
         print ("Oula un.e capricorne")
 
         print ("Oula un.e capricorne")
 +
 +
print ("Ok madame astrologie, si tu t'y connais si bien quel signe est compatible avec moi aujourd'hui?")
 +
 +
signes = ["bélier", "taureau", "gémeaux", "cancer", "lion", "vierge", "balance", "scorpion", "sagittaire", "capricorne", "verseau", "poisson"]
 +
 +
i=signes
 +
 +
for i in range (0,1) :
 +
    indice1 = random.randint(0, 11)
 +
    indice2 = random.randint (0, 11)
 +
    indice3 = random.randint (0, 11)
 +
    if indice1 != indice2:
 +
        print (f"tu rencontrera surtout les signes {signes [indice1]} et {signes [indice2]}" , end="")
 +
 +
print (f" mais fais attention aux {signes [indice3]}" , end =" et surtout aux ")
 +
 +
for i in range (0, 1):
 +
    indice3 = random.randint (0, 11)
 +
    print (f" {signes [indice3]}")
 +
    time.sleep(5)
 +
 +
</syntaxhighlight>
 +
 +
 +
 +
 +
 +
 +
#Code de randomisation des voyelles :
 +
<syntaxhighlight lang="html4strict">
 +
import random
 +
 +
with open('poeme.txt','r') as f_open:
 +
    data = f_open.read()
 +
 +
voyelle = "a" "i" "e" "u" "y" "o"
 +
i=voyelle
 +
for i in range (0,5):
 +
    indice1 = random.randint(0, 5)
 +
    indice2 = random.randint(0, 5)
 +
    indice3 = random.randint(0, 5)
 +
    indice4 = random.randint(0, 5)
 +
    indice5 = random.randint(0, 5)
 +
    indice6 = random.randint(0, 5)
 +
    indice7 = random.randint(0, 5)
 +
    indice8 = random.randint(0, 5)
 +
    indice9 = random.randint(0, 5)
 +
    indice10 = random.randint(0, 5)
 +
    indice11 = random.randint(0, 5)
 +
    indice12 = random.randint(0, 5)
 +
    indice13 = random.randint(0, 5)
 +
    indice14 = random.randint(0, 5)
 +
    indice15 = random.randint(0, 5)
 +
    indice16 = random.randint(0, 5)
 +
    indice17 = random.randint(0, 5)
 +
    indice18 = random.randint (0,5)
 +
    indice19 = random.randint (0,5)
 +
    indice20 = random.randint (0,5)
 +
    indice21 = random.randint (0,5)
 +
    indice22 = random.randint (0,5)
 +
    indice23 = random.randint (0,5)
 +
    indice24 = random.randint (0,5)
 +
    indice25 = random.randint (0,5)
 +
    indice26 = random.randint(0, 5)
 +
    indice27 = random.randint(0, 5)
 +
    indice28 = random.randint(0, 5)
 +
    indice29 = random.randint(0, 5)
 +
    indice30 = random.randint(0, 5)
 +
    indice31 = random.randint(0, 5)
 +
    indice32 = random.randint(0, 5)
 +
    indice33 = random.randint (0,5)
 +
    indice34 = random.randint (0,5)
 +
    indice35 = random.randint (0,5)
 +
    indice36 = random.randint (0,5)
 +
    indice37 = random.randint (0,5)
 +
    indice38 = random.randint (0,5)
 +
    indice39 = random.randint (0,5)
 +
    indice40 = random.randint (0,5)
 +
 +
print ( f"{voyelle [indice1]}n{voyelle [indice2]} p{voyelle [indice3]}{voyelle [indice4]} bl{voyelle [indice5]}nch{voyelle [indice6]} d{voyelle [indice7]}ns l{voyelle [indice8]} c{voyelle[indice9]}{voyelle [indice10]}l J'{voyelle [indice11]}{voyelle [indice12]} d{voyelle [indice13]}s ch{voyelle [indice14]}v{voyelle [indice16]}{voyelle [indice17]}x ")
 +
print (f"W{voyelle [indice4]}sh l{voyelle [indice18]} z{voyelle[indice9]}n{voyelle [indice19]} {voyelle [indice1]}{voyelle [indice20]} {voyelle [indice1]}st l{voyelle [indice21]} m{voyelle [indice22]}r, v{voyelle [indice16]}v{voyelle [indice23]} l{voyelle [indice24]} v{voyelle [indice25]}nt")
 +
print (f"{voyelle [indice12]}rSx17CKx17KS;" )
 +
print (f"[Kgx1bS[Cx17K;")
 +
print (f"J{voyelle [indice30]} s{voyelle [indice32]}{voyelle [indice31]}s t{voyelle [indice34]}ll{voyelle [indice33]} {voyelle [indice35]}n{voyelle [indice36]} r{voyelle [indice37]}s{voyelle [indice38]}... D{voyelle [indice39]}l{voyelle [indice40]}c{voyelle [indice24]}t{voyelle [indice27]} {voyelle [indice28]}t q{voyelle [indice29]}{voyelle [indice12]} {voyelle [indice6]}mb{voyelle [indice18]}{voyelle [indice1]}m{voyelle [indice22]}..." )
 +
print (f"{voyelle [indice17]}s't{voyelle [indice37]} v{voyelle [indice9]} m{voyelle [indice16]}n n{voyelle [indice5]}z T{voyelle [indice30]}{voyelle [indice11]}t {voyelle [indice40]}l{voyelle [indice20]}m{voyelle [indice21]}n{voyelle [indice22]}s't{voyelle [indice23]} v{voyelle [indice24]} m{voyelle [indice25]}n n{voyelle [indice27]}z T{voyelle [indice28]}{voyelle [indice29]}t {voyelle [indice30]}l{voyelle [indice18]}m{voyelle [indice19]}n{voyelle [indice20]}" )
 +
print (f"Ch{voyelle [indice1]}m{voyelle [indice2]}n pr{voyelle [indice3]}v{voyelle [indice4]} S{voyelle [indice5]}ll{voyelle [indice6]}n tr{voyelle [indice7]}c{voyelle [indice8]}" )
 +
print (f"J'{voyelle[indice9]}sp{voyelle[indice25]}r{voyelle[indice14]} c{voyelle[indice12]} q{voyelle[indice16]}{voyelle[indice29]} m'{voyelle[indice32]}st {voyelle[indice17]}nt{voyelle[indice21]}rd{voyelle[indice20]}t" )
 +
print (f"{voyelle [indice18]} \x15{voyelle [indice39]}g{voyelle [indice40]}" )
 +
print (f"{voyelle [indice3]} D{voyelle [indice27]}s{voyelle [indice26]}sp{voyelle [indice8]}{voyelle [indice1]}r" )
 +
print (f"{voyelle [indice4]} V{voyelle [indice17]}{voyelle [indice18]}{voyelle [indice19]}ll{voyelle [indice34]}ss{voyelle [indice33]} {voyelle [indice38]}nn{voyelle [indice40]}m{voyelle [indice21]}{voyelle [indice40]}" )
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
#Quelques résultats :
 +
 +
ine pya blincho dons lu cyol J'oe dus chuveux
 +
Wash la zynu ii ist le mir, vevu lu vint
 +
[Kgx1bS[Cx17K;
 +
Ju syes tylle ony risi... Dolacuty at qoe ombaimi...
 +
us'ti vy men niz Tuot alimenis'tu vu min nyz Taot ulamuni
 +
Chimen pryva Sillon trocu
 +
J'yspiru ce qeo m'yst unterdit
 +
a §oga
 +
y Dysespuir
 +
a Vuaullysse innamea
 +
 +
eno pay blynchi duns li ceol J'ay des cheveox
 +
yrSx17CKx17KS;
 +
[Kgx1bS[Cx17K;
 +
Jy syus tolli ino rysy... Dalucoty ot quy imbeemu...
 +
os'ty ve men nyz Tyat ulomenus'ty vo mun nyz Tout ylemyno
 +
Chemon pravy Syllin truci
 +
J'espure cy qeu m'yst onterdot
 +
e §agu
 +
a Dysospier
 +
y Voeyllossi ynnumeu
 +
 +
yna puu bluncho dyns li cool J'ua das chyvyyx
 +
Wush lo zono ya yst lo mur, vyvy li vynt
 +
[Kgx1bS[Cx17K;
 +
Je seus tylle una rasu... Dulecito ut qaa omboymu...
 +
ys'ta vo myn nuz Teut elamonus'ty vi myn noz Tuat elomona
 +
Chyman pruvu Sullon tryci
 +
J'ospyry ca qya m'est yntordat
 +
o §uge
 +
u Dosaspiyr
 +
u Vyoollysse unnemoe
 +
 +
any pye blinchu dons li coal J'ue dis chavaux
 +
Wesh le zonu ae ast lo mur, vava la vent
 +
[Kgx1bS[Cx17K;
 +
Jy syas tilly ynu resa... Dalacati at qae umbeamu...
 +
us'te vo man niz Tyut alemonus'ta va men niz Taat ylemune
 +
Chamyn pryve Sillun troci
 +
J'ospera ce qaa m'yst untordet
 +
e §aga
 +
y Disospiar
 +
e Vueullissy annamoa

Version actuelle datée du 31 janvier 2022 à 09:40

Idée Bot :

Un bot twitter qui répond aux mentions des noms des joueurs de l'équipe féminine d'anderlecht en précisant leurs signes astrologique. ex : un tweet qui dit "Hazel Engelen a empêché un but !" et le bot répond "c'est parce ce qu'elle est scorpion"



from typing import Literal
import random
import time'''


print ("C'est quoi ton mois de naissance?")

mois = input ("je suis né.e en ")

print ("d'accord, alors tu es")

if mois == "janvier":
    print ("alors tu es Capricorne ou Verseau, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Oula un.e capricorne")
    else:
        print ("Ah tu es verseau Uwu")

elif mois == "fevrier":
    print ("alors tu es Verseau ou Poissons, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Ah tu es verseau Uwu")
    else:
        print ("Tu penses à quoi en ce moment, poisson rêveur.euse?")

elif mois == "mars":
    print ("alors tu es Poissons ou Bélier, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu penses à quoi en ce moment, poisson rêveur.euse?")
    else:
        print ("Tu as tout le feu du bélier !")

elif mois == "avril":
    print ("alors tu es Bélier ou Taureau, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu as tout le feu du bélier !")
    else:
        print ("Tu aurais pas faim par hasard Taureau?")
    
elif mois == "mai":
    print ("alors tu es Taureau ou Gémeaux, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu aurais pas faim par hasard Taureau?")
    else:
        print ("Tu es Gémeaux, mais par pitié me demande pas ce que ça signifie ;-;")

elif mois == "juin":
    print ("alors tu es Gémeaux ou Cancer, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu es Gémeaux, mais par pitié me demande pas ce que ça signifie ;-;")
    else:
        print ("Tu es cancer, mais ça va aller t'inquiète pas")
    
elif mois == "juillet":
    print ("alors tu es Cancer ou Lion, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu es cancer, mais ça va aller t'inquiète pas")
    else:
        print ("Heyyyyy salut le lion, tu brilles comme le soleil de jour comme de nuit toi")   

elif mois == "aout":
    print ("alors tu es Lion ou Vierge, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Heyyyyy salut le lion, tu brilles comme le soleil de jour comme de nuit toi")
    else:
        print ("Tu es Vierge, c'est un super beau signe tu devrais t'y pencher")
        
elif mois == "septembre":
    print ("alors tu es Vierge ou Balance, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu es Vierge, c'est un super beau signe tu devrais t'y pencher")
    else:
        print ("Tu es balance, c'est pour ça que tu t'habilles si bien fait!")

elif mois == "octobre":
    print ("alors tu es Balance ou Scorpion, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu es balance, c'est pour ça que tu t'habilles si bien fait!")
    else:
        print ("Tu es scorpion, j'espère que ça va bien dans l'ensemble")

elif mois == "novembre":
    print ("alors tu es Scorpion ou Sagittaire, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu es scorpion, j'espère que ça va bien dans l'ensemble")
    else:
        print ("Tu es sagittaire, vas y raconte moi tes voyages")
        
elif mois == "décembre":
    print ("alors tu es Sagittaite ou Capricorne, tu es né quel jour?")
    jour = input ("le ")
    jour = int(jour)
    if jour <= 21:
        print ("Tu es sagittaire, vas y raconte moi tes voyages")
    else:
        print ("Oula un.e capricorne")

print ("Ok madame astrologie, si tu t'y connais si bien quel signe est compatible avec moi aujourd'hui?")

signes = ["bélier", "taureau", "gémeaux", "cancer", "lion", "vierge", "balance", "scorpion", "sagittaire", "capricorne", "verseau", "poisson"]

i=signes

for i in range (0,1) : 
    indice1 = random.randint(0, 11)
    indice2 = random.randint (0, 11)
    indice3 = random.randint (0, 11)
    if indice1 != indice2:
        print (f"tu rencontrera surtout les signes {signes [indice1]} et {signes [indice2]}" , end="")

print (f" mais fais attention aux {signes [indice3]}" , end =" et surtout aux ")

for i in range (0, 1):
    indice3 = random.randint (0, 11)
    print (f" {signes [indice3]}")
    time.sleep(5)




  1. Code de randomisation des voyelles :
import random 

with open('poeme.txt','r') as f_open:
    data = f_open.read()

voyelle = "a" "i" "e" "u" "y" "o"
i=voyelle
for i in range (0,5):
    indice1 = random.randint(0, 5)
    indice2 = random.randint(0, 5)
    indice3 = random.randint(0, 5)
    indice4 = random.randint(0, 5)
    indice5 = random.randint(0, 5)
    indice6 = random.randint(0, 5)
    indice7 = random.randint(0, 5)
    indice8 = random.randint(0, 5)
    indice9 = random.randint(0, 5)
    indice10 = random.randint(0, 5)
    indice11 = random.randint(0, 5)
    indice12 = random.randint(0, 5)
    indice13 = random.randint(0, 5)
    indice14 = random.randint(0, 5)
    indice15 = random.randint(0, 5)
    indice16 = random.randint(0, 5)
    indice17 = random.randint(0, 5)
    indice18 = random.randint (0,5)
    indice19 = random.randint (0,5)
    indice20 = random.randint (0,5)
    indice21 = random.randint (0,5)
    indice22 = random.randint (0,5)
    indice23 = random.randint (0,5)
    indice24 = random.randint (0,5)
    indice25 = random.randint (0,5)
    indice26 = random.randint(0, 5)
    indice27 = random.randint(0, 5)
    indice28 = random.randint(0, 5)
    indice29 = random.randint(0, 5)
    indice30 = random.randint(0, 5)
    indice31 = random.randint(0, 5)
    indice32 = random.randint(0, 5)
    indice33 = random.randint (0,5)
    indice34 = random.randint (0,5)
    indice35 = random.randint (0,5)
    indice36 = random.randint (0,5)
    indice37 = random.randint (0,5)
    indice38 = random.randint (0,5)
    indice39 = random.randint (0,5)
    indice40 = random.randint (0,5)

print ( f"{voyelle [indice1]}n{voyelle [indice2]} p{voyelle [indice3]}{voyelle [indice4]} bl{voyelle [indice5]}nch{voyelle [indice6]} d{voyelle [indice7]}ns l{voyelle [indice8]} c{voyelle[indice9]}{voyelle [indice10]}l J'{voyelle [indice11]}{voyelle [indice12]} d{voyelle [indice13]}s ch{voyelle [indice14]}v{voyelle [indice16]}{voyelle [indice17]}x ")
print (f"W{voyelle [indice4]}sh l{voyelle [indice18]} z{voyelle[indice9]}n{voyelle [indice19]} {voyelle [indice1]}{voyelle [indice20]} {voyelle [indice1]}st l{voyelle [indice21]} m{voyelle [indice22]}r, v{voyelle [indice16]}v{voyelle [indice23]} l{voyelle [indice24]} v{voyelle [indice25]}nt")
print (f"{voyelle [indice12]}rSx17CKx17KS;" )
print (f"[Kgx1bS[Cx17K;")
print (f"J{voyelle [indice30]} s{voyelle [indice32]}{voyelle [indice31]}s t{voyelle [indice34]}ll{voyelle [indice33]} {voyelle [indice35]}n{voyelle [indice36]} r{voyelle [indice37]}s{voyelle [indice38]}... D{voyelle [indice39]}l{voyelle [indice40]}c{voyelle [indice24]}t{voyelle [indice27]} {voyelle [indice28]}t q{voyelle [indice29]}{voyelle [indice12]} {voyelle [indice6]}mb{voyelle [indice18]}{voyelle [indice1]}m{voyelle [indice22]}..." )
print (f"{voyelle [indice17]}s't{voyelle [indice37]} v{voyelle [indice9]} m{voyelle [indice16]}n n{voyelle [indice5]}z T{voyelle [indice30]}{voyelle [indice11]}t {voyelle [indice40]}l{voyelle [indice20]}m{voyelle [indice21]}n{voyelle [indice22]}s't{voyelle [indice23]} v{voyelle [indice24]} m{voyelle [indice25]}n n{voyelle [indice27]}z T{voyelle [indice28]}{voyelle [indice29]}t {voyelle [indice30]}l{voyelle [indice18]}m{voyelle [indice19]}n{voyelle [indice20]}" )
print (f"Ch{voyelle [indice1]}m{voyelle [indice2]}n pr{voyelle [indice3]}v{voyelle [indice4]} S{voyelle [indice5]}ll{voyelle [indice6]}n tr{voyelle [indice7]}c{voyelle [indice8]}" )
print (f"J'{voyelle[indice9]}sp{voyelle[indice25]}r{voyelle[indice14]} c{voyelle[indice12]} q{voyelle[indice16]}{voyelle[indice29]} m'{voyelle[indice32]}st {voyelle[indice17]}nt{voyelle[indice21]}rd{voyelle[indice20]}t" )
print (f"{voyelle [indice18]} \x15{voyelle [indice39]}g{voyelle [indice40]}" )
print (f"{voyelle [indice3]} D{voyelle [indice27]}s{voyelle [indice26]}sp{voyelle [indice8]}{voyelle [indice1]}r" )
print (f"{voyelle [indice4]} V{voyelle [indice17]}{voyelle [indice18]}{voyelle [indice19]}ll{voyelle [indice34]}ss{voyelle [indice33]} {voyelle [indice38]}nn{voyelle [indice40]}m{voyelle [indice21]}{voyelle [indice40]}" )
  1. Quelques résultats :

ine pya blincho dons lu cyol J'oe dus chuveux Wash la zynu ii ist le mir, vevu lu vint [Kgx1bS[Cx17K; Ju syes tylle ony risi... Dolacuty at qoe ombaimi... us'ti vy men niz Tuot alimenis'tu vu min nyz Taot ulamuni Chimen pryva Sillon trocu J'yspiru ce qeo m'yst unterdit a §oga y Dysespuir a Vuaullysse innamea

eno pay blynchi duns li ceol J'ay des cheveox yrSx17CKx17KS; [Kgx1bS[Cx17K; Jy syus tolli ino rysy... Dalucoty ot quy imbeemu... os'ty ve men nyz Tyat ulomenus'ty vo mun nyz Tout ylemyno Chemon pravy Syllin truci J'espure cy qeu m'yst onterdot e §agu a Dysospier y Voeyllossi ynnumeu

yna puu bluncho dyns li cool J'ua das chyvyyx Wush lo zono ya yst lo mur, vyvy li vynt [Kgx1bS[Cx17K; Je seus tylle una rasu... Dulecito ut qaa omboymu... ys'ta vo myn nuz Teut elamonus'ty vi myn noz Tuat elomona Chyman pruvu Sullon tryci J'ospyry ca qya m'est yntordat o §uge u Dosaspiyr u Vyoollysse unnemoe

any pye blinchu dons li coal J'ue dis chavaux Wesh le zonu ae ast lo mur, vava la vent [Kgx1bS[Cx17K; Jy syas tilly ynu resa... Dalacati at qae umbeamu... us'te vo man niz Tyut alemonus'ta va men niz Taat ylemune Chamyn pryve Sillun troci J'ospera ce qaa m'yst untordet e §aga y Disospiar e Vueullissy annamoa