Ask Your Question
0

passing function to a function

asked 2020-03-29 00:38:23 -0500

Orange gravatar image

updated 2020-03-29 00:40:41 -0500

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 01:25:59 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2020-03-29 00:54:13 -0500

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 00:38:23 -0500

Seen: 32 times

Last updated: Mar 29