(Dec-23-2019, 06:51 PM)H0M1C1D4L_P1G Wrote: as if I was to press enter it would of course execute the line of code so farThat is when you use interactive mode/shell (i.e. that is when you have >>>). Each line is evaluated immediately.
You should write your code and save it as file with py extension. In this case each statement will be on separate line
song = input("What is your favourite song?\n") line1 = input("What\'s the first line?\n") line2 = input("And the second?\n") line3 = input("Finally, the third line?\n") print(f"\n{song}\n{line1},\n{line2},\n{line3}")
Now there are other issues with your code (although it runs), but it's because there are better ways to do what you are doing here
look at https://python-forum.io/Thread-How-to-Ex...ython-code
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs