LinkedIn Python Skill Assessment Quiz Answers

If you don’t explicitly return a value from a function, what happens?

Latest Update on 25th January, 2022 by Certification Course Answers

If you don't explicitly return a value from a function, what happens?

  1.  The function will return a RuntimeError if you don’t return a value.
  2.  If the return keyword is absent, the function will return None.
  3.  If the return keyword is absent, the function will return True.
  4.  The function will enter an infinite loop because it won’t know when to stop executing its code.

Correct Answer:

  •  If the return keyword is absent, the function will return None.

Latest Updates

No posts found in this category.