Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
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
I have finished first in Saturn League 3 times in a row, why have I not been given the badge for âIntergalactic Championâ
1 Votes
Solving coding challenges
2 Votes
Changing String Variables into int in C++
0 Votes
Advertising in Sololearn
1 Votes
I am new
1 Votes
Fill in the blank to declare a static variable.
0 Votes
RUST'S FUTURE
1 Votes
Question #2: "Please activate your account and keep learning to enable messaging. An email has been sent to you"
1 Votes
Programming Language
0 Votes
What are the advantages and disadvantages of using let vs var when declaring variables in JavaScript?
0 Votes