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
slice text
+4
Author: Morteza Mohammadi
Dark
Public
Save
PY
py
1
2
3
4
5
# Write a text/ sentence .The code will remove any
text after dot and shows what before
a=input()
b=a.find(".")
print(a[0:b])
Enter to Rename, Shift+Enter to Preview
OUTPUT