Yong Cui
Feb 7, 2022

--

When a function returns > 1 value, say "hi", "hello", it's essentially returning a tuple that consists of these two strings.

It's triple-quoted string. You can just use regular "return" on your keyboard. I know it's a newline character, but doesn't do anything negative to the docstring.

--

--

Yong Cui
Yong Cui

Written by Yong Cui

Work at the nexus of biomedicine, data science & mobile dev. Author of Python How-to by Manning (https://www.manning.com/books/python-how-to).

Responses (1)