Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. string = "gros lard d poussin"
  2.  
  3. length=len(string)
  4. i=0
  5. contains_e=0
  6.  
  7. while(i<length):
  8. if(string[i] == "e"):
  9. contains_e=1
  10. i=i+1
  11.  
  12. if contains_e == 1:
  13. print("il y a un e!")
  14. else:
  15. print("je suis un gros lardon sans e")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement