+ 3
[SOLVED] PLEASE TAKE TIME TO ANSWER, ATLEAST ONE QUESTION
I have 1 question in my code I have asked my questions in my code playground https://code.sololearn.com/cqw9zhHgprs2/?ref=app
4 Antworten
+ 2
Prabhas Koya this link might help clarify the way Python arguments are passed. The example code is worth studying and understanding.
https://www.geeksforgeeks.org/pass-by-reference-vs-value-in-python/
+ 1
I got answers for question 2 and 3 , I read about nested functions , I just called the function and did not return anything, so it returned none.
https://stackoverflow.com/questions/26478034/JUMP_LINK__&&__python__&&__JUMP_LINK-why-do-my-nested-functions-give-a-nonetype-error
I got answer for another question ,I have given solution for my question there itself.(in my code)
https://www.geeksforgeeks.org/default-arguments-in-python/
Read about 'mutable default arguments'
+ 1
Answer to your first question is yes, x and z will be the same object. You can demonstrate this by printing the id() of each one.
print(id(x))
print(id(z))
0
You're trying to get permutations of the items in the array, including numbers like 1111, 2222, 3333?