May-29-2020, 07:29 PM
(This post was last modified: May-29-2020, 07:31 PM by ShakeyPakey.)
The issue is solved. Thanks for everyone who has been part of this thread.
Here is the solution:
Here is the solution:
with open("file.txt",) as f: line = f.readline() # Line is read from file. In this example, the line is "name = John". name = line.split() print("My name is" + name[2]) # This should print out "My name is John". John is the third string in the line, # after "name" and "="