Start learning free

LESSON 36 OF 673 · FUNCTIONS I

Exercise: Create Function in Python

Practice

We've wrritten this code:

print("Hello AlgoCademy!")
print("Coding is amazing!")
print("Functions are so useful!")

print("Hello AlgoCademy!")
print("Coding is amazing!")
print("Functions are so useful!")

print("Hello AlgoCademy!")
print("Coding is amazing!")
print("Functions are so useful!")

Write the same code in a better way by creating and calling a function print_messages()

STEP 1 OF 5
    Ctrl + Enter to check