(Summation of a series) Write a program that displays the result of 1+2+3+4+5+6+7+8+9.
Python code:
#Calculate summation of series
print("Summation of series:",1+2+3+4+5+6+7+8+9)
Output:
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
Summation of series: 45
>>>