Ask Your Question
0

passing function to a function

asked 2020-03-29 07:38:23 +0100

Orange gravatar image

updated 2020-03-29 07:40:41 +0100

Would any body please help in making following work?

def test(f):
 plot(f)

test(x+1)
edit retag flag offensive close merge delete

Comments

2

Rather add the missing "return".

FrédéricC gravatar imageFrédéricC ( 2020-03-29 08:25:59 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2020-03-29 07:54:13 +0100

Orange gravatar image

never mind.. I figure this out.

def test(f):
 show(plot(f))

test(x+1)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-03-29 07:38:23 +0100

Seen: 144 times

Last updated: Mar 29 '20