Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
simple addition
+1
Author: Arjun Mahanty
Dark
Public
Save
PY
py
1
2
3
4
5
6
x =
input
(
"2+2= "
)
if
x ==
"4"
:
print
(
'\n Exactly! it is 4'
)
else
:
print
(
'\n sorry but you are wrong!'
)
Enter to Rename, Shift+Enter to Preview
OUTPUT