I need some guidance on how best to run this program. Im trying to come up with a python program that accepts input from the user and prints them out until the word quit is inputted in which the program quits but not before printing the inputs twice..
For example
2.0′
6.0
3.5
quit
2.0
6.0
3.5
2.0
6.0
3.5
Thanks so much for helping =)
inputs = []
inp = raw_input(" Enter number or quit: ")
while inp!="quit":
inp = float(inp)
inputs.append(inp)
inp = raw_input("Enter number or quit': ")
if inp == "quit":
print inputs, "quit", inputs * 2
now how do i get them on seperate lines?
Edited to improve visual clarity: