@tecnocoia/

Condicional elif sinxelo: banda de rock

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.40429256652943435","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"cHJpbnQgKCdQYXJhIGVudHJhciBuYSBub3NhIGJhbmRhIGRlIFJvY2sgZGViZXMgY29udGVzdGFyIMOhcyBzZWd1aW50ZXMgcHJlZ3VudGFzOicpCm5vbWUgPSBpbnB1dCAoJ0NvbW8gdGUgY2hhbWFzPycpCmd1aXRhcnJhID0gaW5wdXQoJ1NhYmVzIHRvY2FyIGJlbiBhIGd1aXRhcnJhIChzL24pPycpCmNhbnRhciA9IGlucHV0KCdTYWJlcyBjYW50YXIgKHMvbik/JykKaWYgZ3VpdGFycmEgPT0nbic6CiAgcHJpbnQobm9tZSwgJywgc2VudMOtbW9sbywgbm9uIGRhcyBvIHBlcmZpbC4nKQplbGlmIGNhbnRhciA9PSduJzoKI1B5dGhvbiBzb2FtZW50ZSBsZSBlc3RlIGVsaWYgc2Ugc2FiZXMgdG9jYXIgYSBndWl0YXJyYQogIHByaW50IChub21lLCAnLCBub24gZXMgYSBwZXJzb2EgaWRlYWwgcGFyYSBhIGJhbmRhLCBwZXJvIHBvZGUgcXVlIHRlIGNoYW1lbW9zLicpCmVsc2U6CiAgcHJpbnQobm9tZSwgJywgcGFyYWLDqW5zLCBlcyBhIHBlcnNvYSBpZGVhbCBwYXJhIGEgYmFuZGEuJykK"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
print ('Para entrar na nosa banda de Rock debes contestar ás seguintes preguntas:')
nome = input ('Como te chamas?')
guitarra = input('Sabes tocar ben a guitarra (s/n)?')
cantar = input('Sabes cantar (s/n)?')
if guitarra =='n':
  print(nome, ', sentímolo, non das o perfil.')
elif cantar =='n':
#Python soamente le este elif se sabes tocar a guitarra
  print (nome, ', non es a persoa ideal para a banda, pero pode que te chamemos.')
else:
  print(nome, ', parabéns, es a persoa ideal para a banda.')