Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fancy_concatenate(alist):
- for words in alist:
- word = list(words)
- if len(word) == 3:
- "".join(alist)
- return "".join(alist)
- print(fancy_concatenate([["A", "B", "C"], ["D", "E", "F"]]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement