Sasso Carta Forbice VS COMPUTER | Python Tutorial

Publicado em: 24 Setembro 2021
no canal de: sebamora
972
23

Ciao ragazzi e benvenuti in questo nuovo video, in questo breve tutorial vi spiego come realizzare Sasso Carta Forbice su Python.
Spero che il video vi piaccia, nel caso vi invito a lasciare un mi piace!

Codice vincita/perdita/pareggio:

if scelta_utente == 's' and opzioni_computer[scelta_computer] == 's':
print("Pareggio")
elif scelta_utente == 'c' and opzioni_computer[scelta_computer] == 'c':
print("Pareggio")
elif scelta_utente == 'f' and opzioni_computer[scelta_computer] == 'f':
print("Pareggio")
elif scelta_utente == 's' and opzioni_computer[scelta_computer] == 'c':
print("Hai perso")
elif scelta_utente == 's' and opzioni_computer[scelta_computer] == 'f':
print("Hai vinto")
elif scelta_utente == 'c' and opzioni_computer[scelta_computer] == 'f':
print("Hai perso")
elif scelta_utente == 'c' and opzioni_computer[scelta_computer] == 's':
print("Hai vinto")
elif scelta_utente == 'f' and opzioni_computer[scelta_computer] == 'c':
print("Hai vinto")
elif scelta_utente == 'f' and opzioni_computer[scelta_computer] == 's':
print("Hai perso")

Mi trovate anche su:
Instagram:   / sebastianomora  
Tik Tok: https://www.tiktok.com/@sebastiano.mo...
Twitter:   / sebastianomora  


Nesta página do site você pode assistir ao vídeo on-line Sasso Carta Forbice VS COMPUTER | Python Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário sebamora 24 Setembro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 972 vezes e gostou 23 espectadores. Boa visualização!