Question 3 message = "classroom Building 2" message = message[:5] + message[15:] Question 4 message = "student union" words = message.split() message = words[1].upper() Question 5 message = "Engineering Building 1 rm 187" w = message.split() message = len(w[2]) 1 pts 1 pts 1 pts
Added by Carla H.
Close
Step 1
The line `message = message[:5] + message[15:]` is slicing the string and concatenating the first 5 characters with the characters starting from index 15. So, the resulting string would be "class building". Show more…
Show all steps
Your feedback will help us improve your experience
Samuel Goyette and 99 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Cora M.
In Exercises 51–52, use the coding matrix $$A=\left[\begin{array}{rr}{4} & {-1} \\ {-3} & {1}\end{array}\right] \text { and its inverse } A^{-1}=\left[\begin{array}{ll}{1} & {1} \\ {3} & {4}\end{array}\right]$$ to encode and then decode the given message. HELP
Matrices and Determinants
Multiplicative Inverses of Matrices and Matrix Equations
If M = 1.1 kg, what is the tension in string 1? 40 N 57 N 54 N 62 N 47 N
Narendra K.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD