What function I can use to make the initial part of this code? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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