You have forgotten to include the word self in every function in the class. Also, you need to put it as the first parameter of the function:
def clear(self):
Quoting from geeksforgeeks
selfrepresents the instance of the class. By using theselfkeyword we can access the attributes and methods of the class in python. It binds the attributes with the given arguments. The reason you need to use self. is because Python does not use the @ syntax to refer to instance attributes
So all your function definitions inside the class will have a self parameter as the first one
class functions:
def clear(self):
....
def animation(self,text):
...
class mathematics:
def add(self,a, b):
...
def subtract(self,a, b):
...
def multiply(self,a, b):
...
def divide(self,a, b):
...
class colors:
def red_text(self,text):
...
def blue_text(self,text):
...
def yellow_text(text):
...
def purple_text(self,text):
...
def cyan_text(self,text):
...
def darkcyan_text(self,text):
...
def green_text(self,text):
...
def black_text(self,text):
...
def magenta_text(self,text):
...
class markdown:
def bold_text(self,text):
...
def underlined_text(self,text):
....
def italic_text(self,text):
...
def highlight_text(self,text):
...
def ready():
functions.animation(f"{color.RED}You are using the Print-functions library by W1L7{color.END}")
time.sleep(1)
functions.clear()
ready()