- 5
module3 any assistance please
What is the highest number this function prints if called? def print_numbers(): print(1) print(2) return print(4) print(6)
10 Réponses
+ 5
when you call function
if function has return, it will end at return
so this code will run till print(2)
so the highest number is 2
+ 3
What is the highest number this function prints if called?
def print_numbers():
print(1)
print(2)
return
print(4)
print(6)
it's two
+ 1
it's two
0
2
0
What is the highest number this function prints if called?
def print_numbers():
print(1)
print(2)
return
print(4)
print(6)
answer: return 2
0
ans : 2
0
2
0
2
0
2
0
2 is highest number