- 5

What is the Highest number this function prints if called?

Print (1) Print (2) Return Print (4) Print (6)

7th May 2018, 12:50 PM
Vinay Babu
10 Respostas
+ 3
Here. Check out this code and read the comments. https://code.sololearn.com/cyt7VTamRWPL/?ref=app
7th May 2018, 1:02 PM
cyk
cyk - avatar
+ 2
i know you'll want people to say 2 .But there's no function definition here,just plain prints,also youll get an error
7th May 2018, 12:53 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 2
Answer is 2
21st Feb 2021, 6:07 AM
NσƚPαɳԃα
NσƚPαɳԃα - avatar
0
He didn't say 2 was the highest number. There is no function definition in your question, just a list of statements. And if there was a function definition you have a synthax error cause it is "return" not "Return"
7th May 2018, 12:57 PM
cyk
cyk - avatar
0
What is the highest number this function prints if called?
28th Oct 2020, 4:56 AM
HEENAL VERMA
HEENAL VERMA - avatar
0
I chucked some values in and ran it on idle: ............................... a=1 def print_numbers(a): print(1*a) print(2*a) return print(4*a) print(6*a) print_numbers [1] ...............result.............. 1 2
5th Feb 2021, 6:46 PM
Stephen Nabulivou
Stephen Nabulivou - avatar
0
2
27th Aug 2021, 2:46 PM
PRINCE KUMAR
PRINCE KUMAR - avatar
0
2
14th Nov 2021, 5:43 PM
Alireza adavi
Alireza adavi - avatar
0
The highest number is 2 because in return no argument is given and return exits the function
15th Jul 2022, 2:20 AM
Shiv Kumar Singh
Shiv Kumar Singh - avatar
- 4
How 2 is the Highest number can you explain?
7th May 2018, 12:56 PM
Vinay Babu