how to summon a line in oython using def code example
Example 1: create function in python
def myFunction():
print('I am running in a function!')
Example 2: functions in python
# Functions
""" All the functions are followed by the 'def' keyword in python"""
def Greet(User): # The arguments inside the brackets should be called or the function gives you an error
print("Hello" + User + "!")
# Calling the function
Greet("Shivram")
# Output: 'Hello Shivram !'