A+B: Difference between revisions
Content deleted Content added
→{{header|Python}}: Create Python 2 & 3 version |
|||
Line 593: | Line 593: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
===Console=== |
===Console=== |
||
<lang python> |
<lang python>try: raw_input |
||
except: raw_input = input |
|||
print int(r[0]) + int(r[1])</lang> |
|||
Alternately: |
|||
print(sum(int(x) for x in raw_input().split()))</lang> |
|||
In Python 3.x: |
|||
<lang python>print(sum(input().split()))</lang> |
|||
===File=== |
===File=== |