i have solved a question in codewars:
https://www.codewars.com/kata/5254ca2719453dcc0b00027d/python , here's my solution is it unefficient to use itertools because people are blaming that is cheating using libraries should i try to solve it on other ways and is it this bad way to implement the question this is my first time to solve kata 4kuy a months ago it wasn't possible today is my first one to be solved because of difficulty of the questions.Can you tell me is using libraries considered as a cheating because a lot of people say that is and as a begginer programmer i don't know if i am begginer i am one year into this should i try to focus more on not using libraries?
Thank you.
import itertools
def permutations(s):
result = itertools.permutations(s,len(s))
new_list = []
for item in result:
new_list.append("".join(item))
return sorted(set(new_list))