Quiz: Functions
Test your knowledge of functions with this quiz!
1
What would be the value of my_string
at the end of the program?
my_string = "Hello"
def exclamation(my_string):
my_string = "!!" + my_string + "!!"
return my_string
exclamation(my_string)
print(my_string)
A)
!!Hello!!
B)
Hello
C)
!!!!
D)
Compilation error
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.