Courses
Log in
Start Learning AI
Courses
Log in
Start Learning AI
Q&A Discussions
Search
Search
Ask a question
Ask a question
Why is the magic method __gt__ not necessary?
__gt__
magic
0 Votes
2 Answers
11th Oct 2019, 8:18 PM
Mostapha Amenchar
It gives an erorr saying that __init__ is missing the argument 'h' in __gt__ although it's not missing! Some explain please.
python
0 Votes
6 Answers
12th Aug 2023, 10:05 AM
Intermediate Depression
Why does the magic method __gt__ not only compare 2 objects salaries but compare any 2 numeric arguments of 2 different objects?
magic-methods
oop
python
1 Vote
3 Answers
12th Aug 2022, 9:18 PM
Rebecca
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Activities on sololearn
2 Votes
What is problem in this code
0 Votes
playground input
0 Votes
Html issue
1 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
How I can use div
0 Votes
Asking for final year project ideas!
1 Votes
TIPS From Veterans
1 Votes
Playground input
0 Votes
Cybersecurity jobs without degree
0 Votes