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

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 allow you to replace all occurrences of e in `drink` with E? Note: After your code executes the string drink should be " gingEr bEEr"
What string function would allow you to count the number of g's in `drink` with 1 line
 What is the value of `drink[-3]`? What code would allow you
Code in python

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

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 Databases Questions!