Quiz: Functions
Test your knowledge of functions with this quiz!
We'll cover the following...
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
Access this course and 1400+ top-rated courses and projects.