O que são Classes e Como Criar Novos Tipos de Dados em Python | Orientação a Objetos #2

In this video, we discuss the concept of *class*, a fundamental notion within the object-oriented programming paradigm. To apply our knowledge, we write a class to represent fractions. ▶️ If you have no experience with Python, but would like to learn to program and develop a solid programming foundation using this language, check out our Python the Right Way course: https://vai.pgdinamica.com/pjc-pnp *Video code: https://github.com/python-cafe/orient... ▶️ Learn more about object-oriented programming in Python with the videos in this playlist:    • Programação Orientada a Objetos com Python   0:00 Objects as values ​​with attributes and methods 0:55 What are classes in object-oriented programming 2:30 Creating a class for a new data type 5:57 Representing object attributes in classes 6:47 Constructor and the _init_ function in Python 12:50 Testing our Fraction data type 15:38 Writing methods for the Fraction class 34:17 Difference between class and object 📚 Recommended Data Science books: https://amzn.to/2XZyxUr 📚 Algorithms and Data Structures books: https://amzn.to/3d5wK4m Setup - Equipment: https://amzn.to/37Cg3N2 Programming Dynamic Shorts:    / @alforriah   🟣 Twitch channel for live streams:   / pgdinamica   🟦 Telegram channel to receive videos: https://t.me/joinchat/AAAAAFaoNgZTMRv... ✉️ Emails: – Business proposals: [email protected] – Other matters: [email protected] 👩🏾‍💻👨🏾‍💻 Check out more content on our blog: https://blog.programacaodinamica.com.br 🔥 Join the free Programação Mais Dinâmica community: https://bit.ly/pgsparkle (download the app and join the community) 📸 Follow us on Instagram:   / pgdinamica   📸 @kizzy_terra @hallpaz 🐦 Follow us on Twitter:   / pgdinamica   🐦 @kizzy_terra @hallpaz Like Programação Dinâmica on Facebook: fb.com/pgdinamica Our repository on Github: github.com/programacaodinamica Check out our Medium: medium.com/programacaodinamica Check out the articles on Python Café: pythoncafe.com.br 🥰 If you like our work and find our presence on YouTube relevant, consider supporting us by becoming a channel member: https://www.youtube.com/programacaodi...