python functions or code example
Example 1: function used in python
def hello():
name = str(input("Enter your name: "))
if name:
print ("Hello " + str(name))
else:
print("Hello World")
return
hello()
Example 2: python is fun
Python is fun, expressive, its readable style, quick editing, run development cycle meaning you can sit down writing code, rather than fighting compilers and complex syntax. Python will grow with you as your experiments become prototypes, your prototypes become products.