Replies: 1 comment
-
Codewars Github is meant as a place to discuss functions and issues with Codewars website and platform. It is not meant for help with solving kata. Please ask your question in kata discourse (label your post as I am closing this discussion as off-topic here. Please ask your question in kata discourse, or on CW Discord. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My code enters an infinite loop for n >= 6, and I dont know the reason :/
def pipi(n):
if n == 0:
return 0
else:
ps = [1]
for i in range(n-1):
ps += [n]
Beta Was this translation helpful? Give feedback.
All reactions