examples of function in python
print("\n") #This adds a new line below print(phrase.lower()) #Turns all alphabets to lowercase print(phrase.upper()) #Turns all alphabets to uppercase print(phrase.isupper()) #Checks if all alphabets are uppercase, same for lowercase print(phrase.upper().isupper()) #We can use these functiones one after another too! #This comes in handy a lot
How to make a function in Python
print("Hello below this is function") def hi(): print("Hi I am a function") hi() # You must call the function