Function definitons help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Function definitons help

Newbie to python here. Could someone be kind enough to explain this to me please? What is the highest number output by this code? def print_nums(x): for i in range(x): print(i) return print_nums(10) >>> 0 >>> Thanks for the assistance.

6th Apr 2020, 9:04 AM
Aj Patil
Aj Patil - avatar
1 Answer
0
The code is explained in comments. https://code.sololearn.com/c3eGSo6cwyA6/?ref=app
6th Apr 2020, 10:21 AM
Avinesh
Avinesh - avatar