Learn Python
Lesson 1 - Introduction To Python
Lesson 2 - Basic Python Syntax
Lesson 3 - Control Flow
Lesson 5 - Basic Data Structures
Lesson 6 - Exception Handling
Lesson 7 - Modules And Packages
Lesson 8 - Basic String Operations
Lesson 9 - Object-Oriented Programming (OOP)
Not all functions can operate without data. Nearly all functions in typical programming require some data to function properly. This data is known as parameters.
Let's update our greet()
function with parameters:
def greet(name): print("Hello,", name) greet("Alex")
In this example, the greet()
function accepts a name
as a parameter.