I'm writing a python program and need some help.
Firstly, is there anyway to include variables in an input prompt?
[variable1 = 4
variable 2= 3
variable= raw_input("Please enter a number between", variable 1, "and", variable2) ]
Also, if data is being appended to the end of a text file, when reading and printing the data, is there anyway to put a new line between each piece of data.
If the text in the text file looked like this: John, 3Sam, 4
Can you split after the number and display the next piece on the next line?
My code treading and printing this section is this:
[scores = open("scores.txt", 'r')
Thankyou for any help, it is appreciated.