Functions amiright
Functions organize code into reusable blocks. They can take parameters, perform operations, and return results.
Example function that concatenates two strings:
def concatenate(str1, str2):
return str1 + str2
Using the function
result = concatenate("Hello, ", "world!")
print("Output: ", result)