Computer Science, asked by queensp73, 10 months ago

Write the use of the following keywords:
(i) def
(ii) return

#Keep smiling :)

Answers

Answered by mondalarijit736
2

Answer:

i) def keyword is used to create a new user defined function. ... The return key is closely connected with a function definition; it exits the function and returns a value. The value is then assigned to the a and b variables.

ii) return keyword is used to return from a method when its execution is complete. When a return statement is reached in a method, the program returns to the code that invoked it. A method can return a value or reference type or does not return a value.

hope it helps u

plz mark the answer as brainliest

#Tiktok Lovers

Answered by Anonymous
1

NANBA...

# def (). { REMEBER IT AS DEFINE }

It is a keyword used for defining a function..

It is a keyword used for defining a function..The def function creates object and assigns it a name..

For example :

def my_function():

print("Hello from a function")

my_function()

OUTPUT

Hello from a function

# return ()

I DONT .... THE WHAT IT DOES I AM SORRY..!

Similar questions