Important Notice:

Strings in Python (Chapter: 6)

2 Notes

Notes in Strings in Python (Chapter: 6)

Strings in Python

StringsA string is a sequence of characters enclosed in quotes.s1 = "Hello"\ns2 = 'World'\ns3 = """Multi-line"""String O...

M3-R5.1
Read Now →
String Formatting & Slicing

String Formattingname = "Rahul"\nage = 20\n\n# f-string (recommended)\nprint(f"Name: {name}, Age: {age}")\n\n# format()\...

M3-R5.1
Read Now →