Question: Problem 3 Strings. This problem is about string slicing and indexing. Remember that string slicing has the following syntax: string( start index: stop index(excluded): step





Problem 3 Strings. This problem is about string slicing and indexing. Remember that string slicing has the following syntax: string( start index: stop index(excluded): step ). In the following questions you need to figure out the missing values of variables x, y, and z if the output of the program is "Camden, who is Conan?" x, y, z = ?, ?, ? a = "Hello, world!" b "My name is Conan." c = "Who are you?" mystery_name b[x] + b[-3] + b[5] + a[-2] + a[1] + b[-2] mystery_message a[y:8] + c[1:4] + b[8:z] + [-1] answer = mystery_name = mystery_message print(answer) Question 11 2 pts What is the value of x? 6 10 O 11 O 14 o 2 07 04 O 13 05 O 12 What is the value of y? 10 5 O2 O 6 4 0 8 13 2 pts What is the value of z? 11 O 15 O 10 O 12 O 17 O 14 09 16 8 O 13 07 Question 14 2 pts What is the length of the mystery name? 5 8 O 9 07 0 3 O 10 04 O 2 Question 15 2 pts What is the length of the mystery message? 16 O 18 O 15 14 12 O 13 11 17 O 10 O 20 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
