Code viewer for World: Strings
"""
Topic: Variables and Data Types: Strings
Purpose: Using text (strings) in Python
Output: Displays text and its type in the terminal
"""

# -----------------------------
# 1. What is a string?
# -----------------------------
# A string is a piece of text. Anything inside quotes is a string.
# Examples: "Hello", 'Python', "123", "I am 10 years old"

# -----------------------------
# 2. Creating string variables
# -----------------------------
name = "Aaqid"           # A string with letters
greeting = "Hello World" # Another string
sentence = "Python is fun!" 

# -----------------------------
# 3. Printing strings
# -----------------------------
print("Name:", name)           # prints: Name: Aaqid
print("Greeting:", greeting)   # prints: Greeting: Hello World
print("Sentence:", sentence)   # prints: Sentence: Python is fun!

# -----------------------------
# 4. Checking string types
# -----------------------------
print("Type of name:", type(name))         # <class 'str'>
print("Type of greeting:", type(greeting)) # <class 'str'>

# -----------------------------
# 5. Notes
# -----------------------------
# 1. Strings can use double quotes " " or single quotes ' '.
# 2. Strings can contain letters, numbers, or symbols.
# 3. Strings are used whenever you want to work with text.