- 5
What is the Highest number this function prints if called?
Print (1) Print (2) Return Print (4) Print (6)
10 Respuestas
+ 3
Here. Check out this code and read the comments.
https://code.sololearn.com/cyt7VTamRWPL/?ref=app
+ 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
+ 2
Answer is 2
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"
0
What is the highest number this function prints if called?
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
0
2
0
2
0
The highest number is 2 because in return no argument is given and return exits the function
- 4
How 2 is the Highest number can you explain?