1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lunna [17]
3 years ago
10

Question Set 22.1 Using the count method, find the number of occurrences of the character 's' in the string 'mississippi'.2.2 In

the string 'mississippi', replace all occurrences of the substring 'iss' with 'ox'.2.3 Find the index of the first occurrence of 'p' in 'mississippi'.
Engineering
1 answer:
Gnom [1K]3 years ago
8 0

Answer:

# Program is written in python

# 22.1 Using the count method, find the number of occurrences of the character 's' in the string 'mississippi'.

# initializing string

Stringtocheck = "mississippi"

# using count() to get count of s

counter = Stringtocheck.count('s')

# printing result

print ("Count of s is : " + str(counter))

# 2.2 In the string 'mississippi', replace all occurrences of the substring 'iss' with 'ox

# Here, we'll make use of replace() method

# Prints the string by replacing iss by ox

print(Stringtocheck.replace("iss", "ox"))

#2.3 Find the index of the first occurrence of 'p' in 'mississippi'

# declare substring

substring = 'p'

# Find index

index = Stringtocheck.find(substring)

# Print index

print(index)

# End of program

You might be interested in
The loneliest people are to kindest
valkas [14]

Answer:

The most damaged people are the wisest is a fact

Explanation:

5 0
3 years ago
Read 2 more answers
Georgia Tech is committed to creating solutions to some of the world’s most pressing challenges. Tell us how you have improved o
Kaylis [27]

Answer:

Georgia Tech is committed to WGAR 53566 THE ANSWER IS JELLY IS KING AND THE JELLY IS KING AND  hope to improve the human condition in your community.

Explanation:

6 0
3 years ago
What is the composition of the two phases that form when a stream of 40% A, 39% B, and 21% C separates into two phases? Label th
irga5000 [103]

Answer:

vapor fraction = 0.4 and 0.08

Explanation:

At reasonably high temperatures, a mixture will exist in the form of a sub cooled liquid. Between these extremes, the mixture exists in a two phrase region where it is a vapor liquid equilibrium. From a vapor-liquid phase diagram, a mixture of 40% A, 39% B, and 21% C separates to give the vapor compositions of 0.4 and 0.08.

8 0
3 years ago
Car insurance incentives and discounts are available depending on _____. A. school attendance and driver skill B. vehicle type a
WARRIOR [948]

Answer:D. Location, vehicle type, and driving habits

5 0
3 years ago
Read 2 more answers
State five applications of thermochromic materials
rusak2 [61]

Explanation:

The end-use industries of thermochromic materials include packaging, printing & coating, medical, textile, industrial, and others. Printing & coating is the fastest-growing end-use industry of thermochromic materials owing to a significant increase in the demand for thermal paper for POS systems. The use of thermochromic materials is gaining momentum for interactive packaging that encourages consumers to take a product off the shelf and use it.

8 0
3 years ago
Other questions:
  • How much work is performed if a 400 lb weight is lifted 10 ft ?
    8·1 answer
  • Cold water (cp = 4180 J/kg·K) leading to a shower enters a thin-walled double-pipe counterflow heat exchanger at 15°C at a rate
    11·1 answer
  • The following displacement (cm), output (V) data have been recorded during a calibration of an LVDT. Displacement (cm), output (
    15·1 answer
  • Heat is applied to a rigid tank containing water initially at 200C, with a quality of 0.25, until the pressure reaches 8 MPa. De
    8·1 answer
  • Refrigerant-134a enters an adiabatic compressor at -30oC as a saturated vapor at a rate of 0.45 m3 /min and leaves at 900 kPa an
    13·1 answer
  • Name the ferrous metal that most workshop tools are made from??
    12·2 answers
  • 1. Using the formula above, complete this task.
    9·1 answer
  • Calculate the percentage of recyclables in high socioeconomic localities.
    13·1 answer
  • A system samples a sinusoid of frequency 230 Hz at a rate of 175 Hz and writes the sampled signal to its output without further
    9·1 answer
  • 7. If you can't ignore a distraction, what should you do?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!