Husna Farsana’s Post

🔷 Python Strings Strings are used to store text data in Python. They are written inside single quotes (' ') or double quotes (" "). 🔹 Creating Strings • Strings can be written using single quotes or double quotes • 'Hello' and "Hello" are treated the same in Python 🔹 Displaying Strings • String values can be displayed using the print() function • This is called printing a string literal 🔸 Example • print("Hello") • print('Hello') ▶ Output: Hello 🔹 Key Point ✔ Strings are immutable (cannot be changed) ✔ Used to store and work with text data Strings are widely used in Python for messages, input, and data processing. #Python #PythonStrings #ProgrammingBasics #LearningJourney #Upskilling

To view or add a comment, sign in

Explore content categories