Functions
Predefined Function:
text = input("Enter text: ")
print(len(text))Created Function:
def say_hello():
print("Hello, world!")
# Loop to repeat the function twice
for _ in range(2):
say_hello()Last updated