+ 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

29th Sep 2021, 2:34 PM
Prabhas Koya
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/
2nd Oct 2021, 6:10 AM
Brian
Brian - avatar
+ 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'
1st Oct 2021, 4:37 AM
Prabhas Koya
+ 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))
1st Oct 2021, 4:33 PM
Brian
Brian - avatar
0
You're trying to get permutations of the items in the array, including numbers like 1111, 2222, 3333?
30th Sep 2021, 5:52 AM
Tim
Tim - avatar