I would like to take some text from a file and copy the text and assign it to a variable. How should I do that?
Text file (text.txt):
test
The text file is in the same folder as the Python file below: Part of a Python file (test.py):
info = "test"
So, how do I copy the text from the text.txt file and assign it to the info variable in test.py?