New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
What is wrong with
1 Vote
2 AnswersWhat's wrong in this??
3 Votes
5 Answersis this wrong?
0 Votes
1 AnswerQuick feedback on error?
0 Votes
13 Answersoutputs array
0 Votes
2 AnswersHow i can do in python?
2 Votes
1 AnswerWhy output is 4,9
2 Votes
3 AnswersHow to generate ?
0 Votes
1 AnswerWhat am I doing wrong?
0 Votes
3 Answerscan someone help..
what does this code means so it could have the output like on the example..
class SpecialString:
def __init__(self, cont):
self.cont = cont
def __gt__(self, other):
for index in range(len(other.cont)+1):
result = other.cont[:index] + ">" + self.cont
result += ">" + other.cont[index:]
print(result)
spam = SpecialString("spam")
eggs = SpecialString("eggs")
spam > eggs
1 Vote
5 AnswersHot today
How to cast in python
0 Votes
Python
1 Votes
JavaScript
0 Votes
What happens with this code?
0 Votes
HTML Module 3 Quiz
0 Votes
Field name in ef core
0 Votes