So, I need to use a notepad file for inputs.
I can open the file and print the numbers out but can't seem to assign each line of the notepad to a variable that I can work with in the code
file = open(r"C:/Users/aryaa/Desktop/Base.txt", "r")
text = file.read()
print (text)
I need to put input in a notepad file in different lines (e.g line 1 - 3, lines 2 - 7 etc). I need to place these lines to a variable in python code and work with them all from a note pad file. So how would I open a notepad file and assign each line in the notepad file to a variable that I can work within python?