Computer Science, asked by pa1952337, 9 months ago

def fun1(num)
return num +25
fun1 (5)
print(num)

Answers

Answered by Anonymous
5

Above code have error!

but according to my assumption after correction:-

Output :-

30

Answered by qwnerazzuri
0

def fun1(num):

      return num + 25

num=fun1(5)

print(num)

Output:

30

Here, the above snippet is written in python programming language, In here there is a function defined having name fun1, which takes a number as an input and return an integer by adding the input number with 25, at last the returned integer is stored in a variable named num and it is finally printed as output.

Similar questions