Modern Python 3 Bootcamp |link|
# Create a dictionary person = {"name": "John", "age": 30}
# for loop fruits = ["apple", "banana", "cherry"] for fruit in fruits: print(fruit) modern python 3 bootcamp
Example:
Functions are reusable blocks of code that take arguments and return values. # Create a dictionary person = {"name": "John",