Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://codingbat.com/prob/p145834
- def last2(str):
- c = 0
- for i in range(len(str) - 2):
- if str[i:i+1] == str[-2:]:
- c += 1
- return c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement