String Basics

Creating and using strings

Interview Relevant: Very common in interviews

Strings

Strings are immutable sequences of characters.

Code Examples

String definitions.

python
1s1 = 'Single quotes'
2s2 = "Double quotes"
3s3 = """Triple quotes
4can span multiple
5lines."""

AI Tutor

Ask about the topic

Sign in Required

Please sign in to use the AI tutor

Sign In