Day 1: Python Functions

Today I learned how to write a simple function in Python.
A function is a reusable piece of code that helps avoid repetition.


What I Learned


Example Code From Day 1

def print_hi(name):
    print(f'Hi, {name}')

if __name__ == '__main__':
    print_hi('Dimple')