Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def F (n, As, Bs):
- if n == 0:
- return
- As += "a"
- Bs += "b"
- print As + "S" + Bs
- F(n - 1, As, Bs)
- a = raw_input()
- n = len(a) / 2
- F(n, "", "")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement