learningpython/function.py

8 lines
97 B
Python
Executable file

#! /usr/bin/env python3
def hello(name):
print('hello, '+name)
hello('alice')
hello('bob')