Welcome to the Treehouse Community
Looking to learn something new?
Omar Farag4,571 Points
What are classes in Python?
So I'm in a python track and I just finished one part of the course and went to the next. Kenneth starts mentioning classes but I have no idea what they are, and he never mentioned them before. Any idea on what they are and what they do? Thanks
I know, it won't satisfy you but a really good answer to you question what classes are is listed here: https://docs.python.org/3/tutorial/classes.html
So in generell it is as in all other programming languages as well, classes are objects and class-objects group functions. You can import class-objects to other python scripts/ classes and so on to use the functions from a class-object.
more specific here: https://docs.python.org/3/tutorial/classes.html#class-definition-syntax
"from re import is'." imports the class is from the python-package re