Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #Author Diego Vannelli
  2. def check(s,c,n):
  3. # @Param s: string
  4. # @Param c: string
  5. # @Param n: n
  6. if s[0]==c:
  7. return check(s[1:],c,n-1)
  8. if n<=0:
  9. return true
  10. else:
  11. return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement