Guest User

Untitled

a guest
Mar 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. for line in filename:
  2. if 'miles' in line: #checking for miles is straight forward
  3. #do whatever I have to do
  4. if 'Kilómetros' in line:#the problem is here
  5. #do whatever I have to do
  6.  
  7. text1 = 'abcabcabcabcabcabcabcabcabcabc'
  8. for char in text1:
  9. if char not in ['a', 'b', 'c']:
  10. print('oops',text1)
  11. text2 = 'abcabcabcabcaΞΞΞbcabcabcabcabcabc'
  12. for char in text2:
  13. if char not in ['a', 'b', 'c']:
  14. print('oops',text2)
Add Comment
Please, Sign In to add comment