- 1

HELP!!!!!!!

What is the highest number this function prints if called? def print_numbers(): print(1) print(2) return print(4) print(6)

14th May 2020, 11:25 PM
GUANLIANG Shi
GUANLIANG Shi - avatar
2 Answers
+ 6
def print_numbers(): print(1) print(2) return print(4) print(6) print_numbers() Run it in the playground add see the output.
14th May 2020, 11:29 PM
ChaoticDawg
ChaoticDawg - avatar
+ 4
2, because the execution exits the function when it reaches return statement
14th May 2020, 11:26 PM
Sebastian Pacurar
Sebastian Pacurar - avatar