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
La base de los tema relacionados a las ciencia de las ingeniería es?
Yanka [14]

Answer:

La ciencia y la ingeniería conciben el mundo como comprensible, con reglas que gobiernan su funcionamiento y que a través de un estudio cuidadoso y sistemático se puede evidenciar mediante patrones consistentes que permitan la oportunidad de examinar las características fundamentales que mejor describen los fenómenos.

Explanation:

5 0
2 years ago
What is the purpose of O-ring and valve seals in a cylinder head?
Andrews [41]

Answer:

its to show the shape is flat and only flat at the botom and top and you can set it up ther way and it wlll still look the same.

Explanation:

8 0
2 years ago
A gas tank is known to have a thickness of 0.5 inches and an internal pressure of 2.2 ksi. Assuming that the maximum allowable s
sergiy2304 [10]

Answer:

D_o=11.9inch

Explanation:

From the question we are told that:

Thickness T=0.5

Internal PressureP=2.2Ksi

Shear stress \sigma=12ksi

Elastic modulus \gamma= 35000

Generally the equation for shear stress is mathematically given by

 \sigma=\frac{P*r_1}{2*t}

Where

r_i=internal Radius

Therefore

 12=\frac{2.2*r_1}{2*0.5}

 r_i=5.45

Generally

 r_o=r_1+t

 r_o=5.45+0.5

 r_o=5.95

Generally the equation for outer diameter is mathematically given by

 D_o=2r_o

 D_o=11.9inch

Therefore

Assuming that the thin cylinder is subjected to integral Pressure

Outer Diameter is

 D_o=11.9inch

7 0
3 years ago
In a certain chemical plant, a closed tank contains ethyl alcohol to a depth of 71 ft. Air at a pressure of 17 psi fills the gap
Yuliya22 [10]

Answer:

the pressure at a closed valve attached to the tank 10 ft above its bottom is 37.88 psi

Explanation:

Given that;

depth 1 = 71 ft

depth 2 = 10 ft

pressure p = 17 psi = 2448 lb/ft²

depth h = 71 ft - 10 ft = 61 ft

we know that;

p = P_air + yh

where y is the specific weight of ethyl alcohol ( 49.3 lb/ft³ )

so we substitute;

p = 2448 + ( 49.3 × 61 )

= 2448 + 3007.3

= 5455.3 lb/ft³

= 37.88 psi

Therefore, the pressure at a closed valve attached to the tank 10 ft above its bottom is 37.88 psi

5 0
3 years ago
Which timeline shows the correct order of contributions made to the discovery of DNA?
Akimi4 [234]

Answer:

<em><u>THE ANSWER IS: B</u></em>

Explanation:

I took the Unit test and the answer is B

3 0
2 years ago
Read 2 more answers
Other questions:
  • What is a thermal reservoir?
    15·1 answer
  • A three-point bending test was performed on an aluminum oxide specimen having a circular cross section of radius 5.0 mm (0.20 in
    13·1 answer
  • The viscosity of the water was 2.3×10^−5lb⋅⋅s/ft^2 and the water density was 1.94 slugs/ft^3. Estimate the drag on an 88-ft diam
    13·1 answer
  • Water is pumped from one large reservoir to another at a higher elevation. If the flow rate is 2.5 ft3 /s and the pump delivers
    12·1 answer
  • If y varies inversely as x, and y =23 when x=8, find y when x=4
    14·1 answer
  • You leave your house at 5:02 PM and run 20 yards down the street. You don't realize that you forgot your Wallet back at home and
    11·1 answer
  • Lars is a medical coder. He works for a hospital in Wisconsin but currently lives in Georgia. Lars does his work online and over
    13·1 answer
  • QUESTION<br> Which of the following would assembler do an ideal automated assembly line?
    8·1 answer
  • Write a program that takes three numbers as input from the user, and prints the largest.
    12·1 answer
  • In surveying , supposing we can not pull the tape because it is passing through a shallow river. What will i do to obtain an acc
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!