Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

drink = ginger beer Respond to the following: 1. What is the value of 'drink[-3]'? 2. What code would allow you to print every other

image text in transcribed

drink = "ginger beer" 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g Database Administrator Implementation And Administration

Authors: Gavin Powell, Carol McCullough Dieter

2nd Edition

1418836656, 9781418836658

Students also viewed these Databases questions