Fill in the blanks
# 1. Getting a list entry based on its index
fruits = ['apple', 'banana', 'cherry', 'date']
# Get the third fruit in the list
third_fruit =
print("Third fruit:", third_fruit)
# 2. Getting a character from a string based on an index
word = "Python"
# Get the first character of the word
first_char =
print("First character:", first_char)
# 3. String replacement with .replace()
greeting = "Hello World"
# Replace "World" with "Everyone"
new_greeting =
print("Updated greeting:", new_greeting)
# 4. Converting a string to uppercase using .upper()
message = "stay safe"
# Convert the message to uppercase
loud_message =
print("Uppercase message:", loud_message)
# 5. Using colors in the console
red = "\033[38"
reset = "\033[0m"
# Print "Hello" in red using f-string format
print( )