Python Online Compiler
Example: Python program to the sum of two integers
C
C++
C#
Java
Python
PHP
main.py
STDIN
Run
# Python program to the sum of two integers print("Enter two integer values::\n") p, q, r = int(input()), int(input()), 0 r = p + q print("\nResult:: ", p, " + ", q, " = ", r)
5 7
Output
Clear
ADVERTISEMENTS