+ 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.
5 ответов
+ 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(“.....”);
+ 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")
+ 1
thats weird but kind pf interisting ... 👏
an if statment perhaps 🤷♂️
or a dictonary
+ 1
For meme reasons.
0
It may be possible to do so, but why do it in the first place?