What will be the result of the following script?
def square(x):
    print(x ** 2)

square(3)

Practice More Questions From: Quiz 4 – Functions

Q:

Which of the following statements about Docstrings is correct?

Q:

What will be the result of the following script? def square(x): print(x ** 2) square(3)

Q:

What will be the result of the following script? def add_two(x): x = x + 2 print(x) add_two(5)

Q:

Which of the following statements is true?

Q:

Which of the following statements about the execution order of the script below is true? def study(): print(“Have fun coding!”) def work(): print(“Have fun working!”) print(“Do you know correct execution order?”) work() study()

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments