+ 3

What function I can use to make the initial part of this code?

Define "i love you as 1" print (3 – 2) Output: i love you.

18th Aug 2019, 10:16 PM
Fake Elon
5 Respostas
+ 1
set i love you to value 1, idk how to print stuff based on stuff thats already been printed in python but if(3-2 == 1) print(“.....”);
19th Aug 2019, 12:22 AM
Ole113
Ole113 - avatar
+ 3
🤷‍♂️ import sys def print(o): sys.stdout.write(str(o).replace("1","I love you")+"\n") print(1) print(3-2) print(101) print("hi, 1")
19th Aug 2019, 1:57 AM
Jake
Jake - avatar
+ 1
thats weird but kind pf interisting ... 👏 an if statment perhaps 🤷‍♂️ or a dictonary
18th Aug 2019, 10:23 PM
Anton Böhler
Anton Böhler - avatar
+ 1
For meme reasons.
19th Aug 2019, 1:22 AM
Fake Elon
0
It may be possible to do so, but why do it in the first place?
19th Aug 2019, 1:00 AM
Diego
Diego - avatar