Get The Learn to Code Course Bundle!
Enroll in The Complete Python Course on Udemy!
Within the parenthesis we can pass parameters into our function, then we end the line with a colon. So, now we have a function but it doesn’t perform any actions, yet.
print("This is my function!")
print("A second string.")
Now our function will print out two strings. Notice that our IDE automatically indents 4 spaces. When you indent in Python you are creating block of code. When we skip a line and remove the indentation, we are telling Python that our function is completed. Lastly, we will call our function. In the next video we will talk about arguments and how use them inside your function.