0
Help with this problem
What is 2+2=4-1? Please write it in python
8 Réponses
+ 2
with magic method, you can do that. __sub__ should be overwritten to multiply. so 4-1 will be 4*1 instead.
https://code.sololearn.com/cTOiQeS9ZvBU/?ref=app
+ 5
print(2+2=4-1)
# SyntaxError: keyword can't be an expression
print("2+2=4"-1)
# TypeError: Unsupported operand type(s) for -: 'str' and 'int'
etc...
Perhaps you mean ==?
+ 4
.......... I know y u have asked this question......
Man's not hot!
Damn, this song is going crazy....
anyways,
print("2 + 2 = " + str(2 + 2) + " - 1, that's " + str(4 - 1))
+ 2
where did u see such horrible thing...
2+2 = 4-1....
how???😁😁😁😁
+ 1
@@kirk
😂😂😂
+ 1
:)
0
P = NP
0
@Cool Codin haha