0

How is this working code output is 2 how?

Def printt() : Print (1) Print (2) Return Print (4) Print (6)

30th Jan 2021, 7:45 AM
MALLIKHARJUNA
MALLIKHARJUNA - avatar
3 Antworten
+ 1
Indent your code properly And tell more info about your query in description .
30th Jan 2021, 8:04 AM
Ratnapal Shende
Ratnapal Shende - avatar
+ 1
MANIFESTMF Read the question again. In the quiz question it is mentioned that what will be the max value which will print so here is max value is 2 because you returned after printing 2.
30th Jan 2021, 11:09 AM
A͢J
A͢J - avatar
0
Got it after return it won't execute the function anymore Tnx
30th Jan 2021, 8:09 AM
MALLIKHARJUNA
MALLIKHARJUNA - avatar