
We will now see how to use variables along with literal constants. Save the following example and run the program.
1. Open your favorite editor.
2. Enter the program code given in the example.
4. Run the interpreter with the command pythonprogram.py or use IDLE to run the programs. You can also use the executable method as explained earlier.
i = 5
print i
i = i + 1
print i
s = '''This is a multi-line string. This is the second line.'''
print s
Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.
Popular searches:
Join 2 million readers and get unlimited free ebooks