Friday, April 3, 2020

Answer for Error return outside function

https://365datascience.com/dwqa-answer/answer-for-error-return-outside-function/ -

Hi Srajan!

Thanks for reaching out!

How have you applied indentation to your code? Please make sure you comply with the syntax just as shown in the video (please don’t forget that indentation in Python is crucial!).

Then, return is used when you are defining a function. Here, instead, you are using a loop. We can’t just add the return keyword when it does not regard the creation of a function.

Hope this helps.
Best,
Martin




#365datascience #DataScience #data #science #365datascience #BigData #tutorial #infographic #career #salary #education #howto #scientist #engineer #course #engineer #MachineLearning #machine #learning #certificate #udemy

No comments:

Post a Comment