Skip to content
Omni Academy
Search courses and lessons
Search
Courses
Backend Development
9
Databases
1
Frontend Development
5
Data Science
5
All courses →
Playground
HTML & CSS
JavaScript
TypeScript
Python
PHP
Ruby
Light
Dark
Auto
Sign in
Get started
All
Backend Development
Databases
Frontend Development
Data Science
Playground
Blog
HTML
JS
TS
PY
PHP
RB
← Courses
📄
Working with text
Run as I type
Reset
▶
Run
Ctrl
↵
PY
Python source code
text = "The quick brown fox jumps over the lazy dog." print(f"{len(text.split())} words, {len(text)} characters") # str methods return new strings - they never change the original. print(text.upper()) print(text) # A set comprehension: every letter used, once. letters = {c for c in text.lower() if c.isalpha()} print(f"Distinct letters: {len(letters)} of 26") missing = set("abcdefghijklmnopqrstuvwxyz") - letters print("Missing:", sorted(missing) if missing else "none - it is a pangram")
Input
one line per
input()
call
Output
Rendered by your browser