+ 1

Why this result?

here's a code, which result should be and why? def func(par=[]): par.append("a") return par print(len(func()+func()+func()))

23rd Aug 2019, 7:55 PM
Javier Otálora
Javier Otálora - avatar
5 Antworten
+ 1
Is the secret in len function's code? Festo, an automation company, puts this clue in its Linkedin feed.
29th Aug 2019, 11:12 AM
Javier Otálora
Javier Otálora - avatar
0
ty wet water ))) but try executing the code and the result is 7.
28th Aug 2019, 4:12 PM
Javier Otálora
Javier Otálora - avatar