Python error IndentationError expected an indented block

0 votes

I am trying to execute the following python code:

def Obj_Func(k1):
return np.sum((IConc*np.exp(-k1*Rtime) -Conc)**2)

And I get the folloeing error:

IndentationError: expected an indented block after function definition on line 1

Mar 21, 2022 in Python by Rodrigo

edited 5 days ago 8 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP