+ 3
Did i understand that right?
the highest number output by this code def print_nums(x): for i in range(x): print(i) return print_nums(10) is 0 because the return causes the function to exit?
1 Answer
+ 5
yes
the highest number output by this code def print_nums(x): for i in range(x): print(i) return print_nums(10) is 0 because the return causes the function to exit?