Python
Database
Operating System
Programming
Linux Command
Toolkit
Other
Keyboard Shortcuts
Open sidebar
Open user menu
Guess
Search
Dart
HTML Canvas
Redis
Bash
JavaScript
Python
Getting Started
Slicing String
>>> msg = "Hello, World!" >>> print(msg[2:5]) llo
See:
Strings
Comments
Add your comment
Post
Related
Miscellaneous
Python Classes & Inheritance
Python File Handling
Python Modules
Python Functions
Python Loops
Python Flow control
Python Lists
Python F-Strings (Since Python 3.6+)
Python Strings
Python Advanced Data Types
Python Built-in Data Types
Getting Started