What is the output of the below program?

Question

def abc():
print(“The”)
return “Data”
return”Monk”
print(abc())

in progress 1
TheDataMonk 55 years 9 Answers 831 views Grand Master 0

Answers ( 9 )

  1. def abc():
    print(‘The Data Monk’)
    return ”
    print(abc())

    Output: ‘The Data Monk’

  2. OUTPUT:THE DATA
    This will be because any function will only return one value when it is called.

Leave an answer

Browse
Browse