- 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)

5th Sep 2016, 1:09 PM
dominic ondigo
dominic ondigo - avatar
10 Respuestas
+ 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
5th Sep 2016, 1:42 PM
beauty1234
+ 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
8th Sep 2019, 10:11 PM
OUSSAMA ROMDHANI
OUSSAMA ROMDHANI - avatar
+ 1
it's two
9th May 2019, 12:00 AM
coolest876876
coolest876876 - avatar
0
2
12th Jan 2019, 6:48 PM
Igune Justine Robert
Igune Justine Robert - avatar
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
17th Dec 2020, 8:23 AM
umesha ramanayake
umesha ramanayake - avatar
0
ans : 2
11th Feb 2021, 5:59 PM
Md Momin Uddin Hridoy
Md Momin Uddin Hridoy - avatar
0
2
12th May 2021, 6:20 AM
Sangeetha Geetha
Sangeetha Geetha - avatar
0
2
20th Jul 2022, 9:24 AM
Randrianantenaina José Roland
Randrianantenaina José Roland - avatar
0
2
4th Aug 2022, 2:12 PM
wessam lahmod nados
0
2 is highest number
19th Oct 2022, 4:24 AM
Md Hasan Sikder
Md Hasan Sikder - avatar