Professional Documents
Culture Documents
Print Input Len : Def Hello : Print ('Howdy!') Print ('Howdy!!!') Print ('Hello There.') Hello Hello Hello
Print Input Len : Def Hello : Print ('Howdy!') Print ('Howdy!!!') Print ('Hello There.') Hello Hello Hello
from the previous chapters. Python provides several built-in functions like
these, but you can also write your own functions. A function is like a
miniprogram within a program.
To better understand how functions work, let’s create one. Enter this
program into the file editor and save it as helloFunc.py:
➊ def hello():
➋ print('Howdy!')
print('Howdy!!!')
print('Hello there.')
➌ hello()
hello()
hello()