Question: What is the value of `drink[-3]`? What code would allow you to print every other letter in `drink` (i.e. print gne er)? What code would
Respond to the following: 1. What is the value of drink[-3]"? 2. What code would allow you to print every other letter in drink (i.e. print "gne er")? 3. What code would allow you to replace all occurrences of "e" in drink with "E"? Note: After your code executes the string drink should be " gingEr bEEr" 4. What string function would allow you to count the number of g's in drink with 1 line
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
