0

Wht will b output for this

def mystery(l): l = l + l return() my list = [ 31,24,75] mystery (my list)

5th Feb 2017, 3:24 AM
kavitha.k
3 ответов
+ 1
first there will be an error, since indentation is wrong at return statement. and as your function is returning none so there will be no change in original list. moreover there is no print statement so no output will be there.
5th Feb 2017, 3:48 AM
Mayank Jain
Mayank Jain - avatar
0
so what do you think @Mayank Jain what will be the answer for the following set of code.
6th Feb 2017, 12:43 PM
Rahul Koli
Rahul Koli - avatar
0
There will be no answer but an error i.e. Syntax error unexpected indent
6th Feb 2017, 5:07 PM
Mayank Jain
Mayank Jain - avatar