fork download
  1. def has_no_e(phrase):
  2. have_e = 0
  3. not_have_e = 0
  4. try:
  5. proc = (have_e/not_have_e) * 100
  6. except ZeroDivisionError:
  7. print('ZeroDivisionError')
  8. for word in phrase:
  9. list.append(word)
  10. for word in list:
  11. if 'e' in word:
  12. have_e += 1
  13. list.remove(word)
  14. else:
  15. not_have_e += 1
  16.  
  17. print(list, proc)
  18.  
  19. list = ['mat', 'tvou', 'ebal']
  20. has_no_e(list)
Time limit exceeded #stdin #stdout 5s 147968KB
stdin
Standard input is empty
stdout
Standard output is empty