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
input string
+2
Author: Petr
Dark
Public
Save
PY
py
1
2
3
4
5
6
try
:
s=
int
(
input
(
""
))
print
(
"Your string is int "
+
str
(
s
))
except
:
print
(
"somesing wrong. try again "
)
print
(
s
)
Enter to Rename, Shift+Enter to Preview
OUTPUT