I'm very very new to Python (and programming in general) and I'm trying to figure out how to create a newline at the end of a script.
When I run:
x = 'summary'
print "\nthe election is: %s\n" % x
It returns this in Powershell:
>
the election is: summary
>
However, if I run this:
x = 'summary'
print "\nthe election is: \n", x
It returns this in Powershell:
>
the election is:
summary
>
In the second example, I can't figure out how to use "\n" to have summary stay on the same line as the sentence "The election is", while adding a newline after it.
All help is greatly appreciated.