Using parameters in a function is a good way to get values to use. For example:
def helloworld(message):
print('hello', message, 'world!')
If I called this function like this:
helloworld(‘minecraft’)
It would output
hello minecraft world
Using parameters in a function is a good way to get values to use. For example:
def helloworld(message):
print('hello', message, 'world!')
If I called this function like this:
helloworld(‘minecraft’)
It would output
hello minecraft world
A programmer who, to preserve his sanity, took refuge in electrical engineering. What an idiot.
First Published 2015-12-06
Categories: [ Old Blog ]