I want to make the print({})
display something from another
File. What I have been trying:
main.py:
with open("Filename.txt", "tr") as f:
data = f.readlines()
if "print({})" in data:
print("{}".format(data))
Filename.txt:
print("Hello world")
result:
This means I have made an error. But there were no error messages. What did I do wrong?