
Sign up to save your podcasts
Or


How does the computer decide whether two objects are equal? By default, Python compares objects based on identity, but we can override that behavior by implementing the __eq__() method.
Uploaded 02-03-26
View the program used in this video at:
https://www.khanacademy.org/python-program/object-equality/6560227012493312
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now with our Intro to Computer Science - Python course!
Course link: https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:building-software-with-classes
Course playlist: https://www.youtube.com/playlist?list=PLSQl0a2vh4HDkbhG0sDW0b-VZXykEIAe5
Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help!
Donate or volunteer today! Donate here: https://www.khanacademy.org/donate?utm_source=youtube&utm_medium=desc
Volunteer here: https://www.khanacademy.org/contribute?utm_source=youtube&utm_medium=desc
TIMESTAMPS:
00:00 : identity comparison
00:31 : Card class
00:57 : comparing Cards
01:36 : __eq__() method
02:13 : __eq__() syntax
03:11 : when does __eq__() execute?
03:53 : comparing rank attributes
04:32 : comparing ranks and suits
Learn more about your ad choices. Visit megaphone.fm/adchoices
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now: https://www.khanacademy.org/math/cc-fourth-grade-math/imp-factors-multiples-and-patterns/imp-prime-and-composite-numbers/v/prime-numbers
Uploaded 11-05-11
What does it mean to be a prime number? Let's progress though some whole numbers and ask ourselves if they meet the criteria. What is the criteria you ask? Watch.
Practice this lesson yourself on KhanAcademy.org right now: https://www.khanacademy.org/math/pre-algebra/factors-multiples/prime_numbers/e/prime_numbers?utm_source=YT&utm_medium=Desc&utm_campaign=PreAlgebra
Watch the next lesson: https://www.khanacademy.org/math/pre-algebra/factors-multiples/prime_numbers/v/recognizing-prime-numbers?utm_source=YT&utm_medium=Desc&utm_campaign=PreAlgebra
Missed the previous lesson?
https://www.khanacademy.org/math/pre-algebra/factors-multiples/divisibility_and_factors/v/divisibility-intuition?utm_source=YT&utm_medium=Desc&utm_campaign=PreAlgebra
Pre-Algebra on Khan Academy: No way, this isn't your run of the mill arithmetic. This is Pre-algebra. You're about to play with the professionals. Think of pre-algebra as a runway. You're the airplane and algebra is your sunny vacation destination. Without the runway you're not going anywhere. Seriously, the foundation for all higher mathematics is laid with many of the concepts that we will introduce to you here: negative numbers, absolute value, factors, multiples, decimals, and fractions to name a few. So buckle up and move your seat into the upright position. We're about to take off!
About Khan Academy: Khan Academy offers practice exercises, instructional videos, and a personalized learning dashboard that empower learners to study at their own pace in and outside of the classroom. We tackle math, science, computer programming, history, art history, economics, and more. Our math missions guide learners from kindergarten to calculus using state-of-the-art, adaptive technology that identifies strengths and learning gaps. We've also partnered with institutions like NASA, The Museum of Modern Art, The California Academy of Sciences, and MIT to offer specialized content.
For free. For everyone. Forever. #YouCanLearnAnything
Subscribe to KhanAcademy’s Pre-Algebra channel:: https://www.youtube.com/channel/UCIMlYkATtXOFswVoCZN7nAA?sub_confirmation=1
Subscribe to KhanAcademy: https://www.youtube.com/subscription_center?add_user=khanacademy
Learn more about your ad choices. Visit megaphone.fm/adchoices
Trigonometry problem involving two ships colliding.
Uploaded 08-12-07
Learn more about your ad choices. Visit megaphone.fm/adchoices
Let’s learn about the words “submerge” and “profound.” I’ll go through what they mean and how to use them!
Uploaded 12-11-25
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now!
https://www.khanacademy.org/ela/8th-grade-reading-and-vocabulary/x435b1de09a877dd7:the-world-beneath-8/x435b1de09a877dd7:the-world-beneath-building-background-knowledge-8/a/the-world-beneath-unit-vocabulary-8?lang=en
Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help!
Donate or volunteer today! Donate here: https://www.khanacademy.org/donate?utm_source=youtube&utm_medium=desc
Volunteer here: https://www.khanacademy.org/contribute?utm_source=youtube&utm_medium=desc
Learn more about your ad choices. Visit megaphone.fm/adchoices
Khan Academy Districts and College Board share strategies for aligning instruction to the SAT, guidance on equity-first implementation, models that scale across districts, actionable data insights, and coaching approaches to support teachers and counselors.
Uploaded 02-03-26
Learn more about your ad choices. Visit megaphone.fm/adchoices
Trigonometry problems dealing with the height of two people on a ferris wheen
Uploaded 08-12-07
Learn more about your ad choices. Visit megaphone.fm/adchoices
A more formal understanding of functions
Watch the next lesson: https://www.khanacademy.org/math/linear-algebra/matrix_transformations/linear_transformations/v/vector-transformations?utm_source=YT&utm_medium=Desc&utm_campaign=LinearAlgebra
Missed the previous lesson?
https://www.khanacademy.org/math/linear-algebra/vectors_and_spaces/null_column_space/v/showing-that-the-candidate-basis-does-span-c-a?utm_source=YT&utm_medium=Desc&utm_campaign=LinearAlgebra
Linear Algebra on Khan Academy: Have you ever wondered what the difference is between speed and velocity? Ever try to visualize in four dimensions or six or seven? Linear algebra describes things in two dimensions, but many of the concepts can be extended into three, four or more. Linear algebra implies two dimensional reasoning, however, the concepts covered in linear algebra provide the basis for multi-dimensional representations of mathematical reasoning. Matrices, vectors, vector spaces, transformations, eigenvectors/values all help us to visualize and understand multi dimensional concepts. This is an advanced course normally taken by science or engineering majors after taking at least two semesters of calculus (although calculus really isn't a prereq) so don't confuse this with regular high school algebra.
Uploaded 20-10-09
About Khan Academy: Khan Academy offers practice exercises, instructional videos, and a personalized learning dashboard that empower learners to study at their own pace in and outside of the classroom. We tackle math, science, computer programming, history, art history, economics, and more. Our math missions guide learners from kindergarten to calculus using state-of-the-art, adaptive technology that identifies strengths and learning gaps. We've also partnered with institutions like NASA, The Museum of Modern Art, The California Academy of Sciences, and MIT to offer specialized content.
For free. For everyone. Forever. #YouCanLearnAnything
Subscribe to KhanAcademy’s Linear Algebra channel:: https://www.youtube.com/channel/UCGYSKl6e3HM0PP7QR35Crug?sub_confirmation=1
Subscribe to KhanAcademy: https://www.youtube.com/subscription_center?add_user=khanacademy
Learn more about your ad choices. Visit megaphone.fm/adchoices
How does the computer represent an object in memory? Trace the execution of a program step-by-step to investigate what happens when Python creates an object and when it calls a method.
Uploaded 23-02-26
View the program used in this video at:
https://www.khanacademy.org/python-program/triangle-class/5537603662757888
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now with our Intro to Computer Science - Python course!
Course link: https://www.khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:building-software-with-classes
Course playlist: https://www.youtube.com/playlist?list=PLSQl0a2vh4HDkbhG0sDW0b-VZXykEIAe5
Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help!
Donate or volunteer today! Donate here: https://www.khanacademy.org/donate?utm_source=youtube&utm_medium=desc
Volunteer here: https://www.khanacademy.org/contribute?utm_source=youtube&utm_medium=desc
TIMESTAMPS:
00:00 : class definition
00:44 : object creation
01:34 : __init__() method
02:01 : self parameter
02:27 : attribute initialization
03:36 : small = Triangle(3, 4)
04:02 : print(big.height)
04:33 : print(big.get_area())
05:52 : small.scale(2)
07:06 : small.scale(10)
07:25 : program termination
Learn more about your ad choices. Visit megaphone.fm/adchoices
Part 2 of the ferris wheel problems. Graph of h(t)=9-8cos(18t)
Uploaded 08-12-07
Learn more about your ad choices. Visit megaphone.fm/adchoices
Let’s learn about the words “accumulate,” “vast,” and “consist.” I’ll go through what they mean and how to use them!
Uploaded 12-11-25
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now!
https://www.khanacademy.org/ela/8th-grade-reading-and-vocabulary/x435b1de09a877dd7:the-world-beneath-8/x435b1de09a877dd7:the-world-beneath-building-background-knowledge-8/a/the-world-beneath-unit-vocabulary-8?lang=en
Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help!
Donate or volunteer today! Donate here: https://www.khanacademy.org/donate?utm_source=youtube&utm_medium=desc
Volunteer here: https://www.khanacademy.org/contribute?utm_source=youtube&utm_medium=desc
Learn more about your ad choices. Visit megaphone.fm/adchoices