Why it's showing indentation error?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why it's showing indentation error??

Python function https://code.sololearn.com/cZa9KWVR71Zm/?ref=app

27th Jun 2020, 11:53 AM
kuldeep singh gurjar
kuldeep singh gurjar - avatar
8 Answers
+ 1
https://code.sololearn.com/cqvDKi13OUxy/?ref=app
27th Jun 2020, 12:07 PM
Slick
Slick - avatar
+ 4
Because def hey(func,x,y,z): lacks code block.
27th Jun 2020, 11:59 AM
Seb TheS
Seb TheS - avatar
+ 2
def lol(x,y,z): return x*y*z def hey(func,x,y,z): return lol(lol(x,y,z),lol(x,y,z),lol(x,y,z)) a=5 b=6 c=7 print (hey(lol,a,b,c))
27th Jun 2020, 12:13 PM
Vishal Gupta
Vishal Gupta - avatar
+ 2
Thanks all of u I have understand it🙏
27th Jun 2020, 12:45 PM
kuldeep singh gurjar
kuldeep singh gurjar - avatar
+ 1
In line 3 remove tab from line 4 add a tab in each line except 8th line
27th Jun 2020, 12:05 PM
Vishal Gupta
Vishal Gupta - avatar
+ 1
What does it mean?? can you explain plz🙏🙏
27th Jun 2020, 12:06 PM
kuldeep singh gurjar
kuldeep singh gurjar - avatar
+ 1
Vishal Gupta def add(x, y): return x + y def do_twice(func, x, y): return func(func(x, y), func(x, y)) a = 5 b = 10 print(do_twice(add, a, b)) Here why we have used func instead of add during return , while in your ans you have used lol instead of func
27th Jun 2020, 12:39 PM
kuldeep singh gurjar
kuldeep singh gurjar - avatar
0
Please tell me about this error,why it's showing this 🙏🤒
27th Jun 2020, 11:57 AM
kuldeep singh gurjar
kuldeep singh gurjar - avatar