+ 1
Why it's showing indentation error??
Python function https://code.sololearn.com/cZa9KWVR71Zm/?ref=app
8 odpowiedzi
+ 1
https://code.sololearn.com/cqvDKi13OUxy/?ref=app
+ 4
Because def hey(func,x,y,z): lacks code block.
+ 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))
+ 2
Thanks all of u I have understand it🙏
+ 1
In line 3 remove tab
from line 4 add a tab in each line
except 8th line
+ 1
What does it mean?? can you explain plz🙏🙏
+ 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
0
Please tell me about this error,why it's showing this 🙏🤒