For example, lets say I do this:
print("Blah blah blah")
Now I want to be able to read the contents of that line which was just outputted to console and store it in a variable
For example:
CODE:
def getPrintedLine(contents_of_line):
# some code to find that line
print("Blah blah blah")
myVar = getPrintedLine("blah")
print(myVar)
OUTPUT:
Blah blah blah
Blah blah blah