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
9. Imagine that you're performing measurements on a circuit with a multimeter. You measure a total circuit
ratelena [41]

Answer:

C

Explanation:

the total resistance is equal to the total potential difference divided by the Current

3 0
3 years ago
Read 2 more answers
The Danish scientist Niels Bohr proposed a model of the atom that is not totally accurate today but still contains components th
blagie [28]

Answer:

Option B

Planetary

Explanation:

In 1913, Niels Bohr proposed a model to explain the stability of orbits around the nucleus. Niels believed that light is emitted by an electron when the electron's energy changes. Bohr Atomic Model is sometimes called planetary model because it resembles a mini-solar system.

7 0
3 years ago
Do you know anything about Android graphics?
Mashutka [201]

Android provides a huge set of 2D-drawing APIs that allow you to create graphics.

Android has got visually appealing graphics and mind blowing animations.

The Android framework provides a rich set of powerful APIS for applying animation to UI elements and graphics as well as drawing custom 2D and 3D graphics.

<h3>Three Animation Systems Used In Android Applications:-</h3>

1. Property Animation

2. View Animation

3. Drawable Animation

7 0
3 years ago
What major advancement in machine tools occurred in the 1970s and what benefits did it provide? describe in your own words.
mixer [17]

Answer:

I'm just a seventh grader

4 0
3 years ago
Read 2 more answers
What are the advantages of triggering circuit<br> for thyrestors?
sergejj [24]

Answer:

For most applications, it is simple, dependable, efficient, and straightforward to apply - a simple trigger signal may be provided, with appropriate processing if necessary. This implies that an appropriate trigger signal may be generated using other electrical circuits and then applied to the SCR.

Explanation:

3 0
3 years ago
Other questions:
  • What is an ip<br> Number
    12·1 answer
  • given the classes above, what output is produced by the following code? meg[] elements ={new Lois(), new Stewie(), new Meg(), ne
    15·1 answer
  • A driver is traveling at 52 mi/h on a wet road. an object is spotted on the road 415 ft ahead and the driver is able to come to
    5·2 answers
  • Two advantages of deforming steel at room temperature rather than at elevated temperatures are: (select 2 answers from the optio
    13·1 answer
  • A piston/cylinder contains 1.5 kg of water at 200 kPa, 150°C. It is now heated by a process in which pressure is linearly relate
    14·1 answer
  • Suppose that tank holds 1% liquid water by volume and 99% vapor water by volume at a temperature of 185oC. What is the quality?
    10·1 answer
  • A. A compound gear train is composed of four gears: E,F,G,H. Gear E has 15 teeth and is meshed with gear F. Gear F has 25 teeth
    11·1 answer
  • An aircraft component is fabricated from an aluminum alloy that has a plane strain fracture toughness of 30 . It has been determ
    5·1 answer
  • On some engines after torquing cylinder head fasteners you must
    12·1 answer
  • Hi I'm trying to build a desk that moves up and down electrically but i need help
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!