Inside the text file I currently have:
tickets = []
ticketPrice = 2.20
ticketsNo = 150
income = ticketPrice*ticketsNo
ticketHi = 54
limit = 1
winners = []
numbers = []
winningTickets = []
How would I now read the file and have it create variables and store values accordingly? I know about
with open("file.txt", "r") as f:
//do stuff
but I don't know how to implement it in the fashion I'm after. Thanks in advance