Skip to content
CodeKruPro

Returning several values, or none

QuizEasyPython only

Which statements are true? Pick all that apply.

  • return 1, 2 returns a tuple (1, 2)
  • A function with no return statement returns None
  • return 1, 2 is a syntax error
  • A function must declare its return type

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in