Question: Python Help 1. what does the function return? What is the output of the code? def do_something(a): print(a + + a) return a
Python Help 1. what does the function return? What is the output of the code? def do_something(a): print(a + " " + a) return a + a a = "5" print(do_something(a))
2. Where in this code does the argument appear (select all that apply)
def say_hello(name): # line 1 print("Hello " + name) # line 2 say_hello("Bill") # line 3 line 1, line 2, line 3, nowhere
3. What is the purpose of the def keyword in Python? Select all that apply
It is slang that means the following code is really cool
It indicates the start of a function
It indicates that the following indented section of code is to be stored for later
None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
