Question: # 7 # Find the length of the given string. # Extract the first character ' T ' from the given string using the index

# 7
# Find the length of the given string.
# Extract the first character 'T' from the given string using the index and assign it to a variable.
# Extract the substring 'CQS' from the given string using string slicing and assign it to a variable.
# Loop through the string to print each character in it.
# Using find() method, check if '311' exists in the given string.
# Using replace() method, replace the word 'Lab' with 'class' in the given string.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!