fork download
  1. perg = ["Telefonou para a vítima?", "Esteve no local do crime?", "Mora perto da vítima?", "Devia para a vítima?", "Já trabalhou com a vítima?"]
  2. resp = []
  3. cont = 0
  4.  
  5. while cont <= 4:
  6. print (perg[cont])
  7. r = input ("")
  8. resp.append(r)
  9. cont = cont + 1
  10.  
  11. if resp.count("sim") == 2:
  12. print ("Suspeito")
  13. elif resp.count("sim") == 3 and 4:
  14. print ("Cumplice")
  15. elif resp.count("sim") == 5:
  16. print ("Assassino")
  17. else:
  18. print ("Inocente")
  19.  
  20.  
  21.  
  22.  
Runtime error #stdin #stdout #stderr 0.01s 27720KB
stdin
Standard input is empty
stdout
Telefonou para a vítima?
stderr
Traceback (most recent call last):
  File "./prog.py", line 7, in <module>
EOFError: EOF when reading a line