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
Which of the following Identifies the challenges faced by scientists experimenting with using artificial photosynthesis as
bezimeni [28]

Answer:

The cost and size of materials needed to produce energy

Explanation:

Artificial photosynthesis is a chemical process that uses solar cells instead of chlorophyll to absorb sunlight and convert it into electricity. This process uses artificial leaves that require man-made catalyst to spilt water present in the air into hydrogen and oxygen. It is clear that the reaction requires heat from the sun for energy production thus the technology is expensive to be applied in most areas of the world. Additionally, results obtained from previous undertaken projects of this type has been ineffective and unsustainable because it involves a lot of trial and error.

8 0
2 years ago
A hair dryer is basically a duct in which a few layers of electric resistors are placed. A small fan pulls the air in and forces
nika2105 [10]

Answer:

a) volume flow rate of air at the inlet is 0.0471 m³/s

b) the velocity of the air at the exit is  8.517 m/s

Explanation:

Given that;

The electrical power Input W_elec = -1400 W = -1.4 kW

Inlet temperature of air T_in = 22°C

Inlet pressure of air p_in = 100 kPa

Exit temperature T_out = 47°C

Exit area of the dyer is A_out = 60 cm²= 0.006 m²

cp = 1.007 kJ/kg·K

R = 0.287 kPa·m3/kg·K

Using mass balance

m_in = m_out = m_air

W _elec = m_air ( h_in - h_out)

we know that h = CpT

so

W _elec = m_air.Cp ( T_in - T_out)

we substitute

-1.4 = m_air.1.007 ( 22 - 47 )

-1.4 =  - m_air.25.175

m_air = -1.4 / - 25.175

m_ air = 0.0556 kg/s

a) volume flow rate of air at the inlet

we know that

m_air = P_in × V_in

now from the ideal gas equation

P_in = p_in / RT_in

we substitute our values

= (100×10³) / ((0.287×10³)(22+273))

= 100000 / 84665

P_in = 1.18 kg/m³

therefore inlet volume flowrate will be;

V_in = m_air / P_in

= 0.0556 / 1.18

= 0.0471 m³/s

the volume flow rate of air at the inlet is 0.0471 m³/s

b) velocity of the air at the exit

the mass flow rate remains unchanged across the duct

m_ air = P_in.A_in.V_in = P_out.A_out.V_out

still from the ideal gas equation

P_out = p_out/ RT_out   ( assume p_in = p_out)

P_out = (100×10³) / ((0.287×10³)(47+273))

P_out  = 1.088 kg/m³

so the exit velocity will be;

V_out = m_air / P_out.A_out

we substitute our values

V_out = 0.0556 / ( 1.088 × 0.006)

= 0.0556 / 0.006528

= 8.517 m/s

 Therefore the velocity of the air at the exit is  8.517 m/s

6 0
2 years ago
A keyboard, monitor and mouse are all considered as computer hardware and a program is known as a software.
Iteru [2.4K]

Answer:

This should be true because program is a software and mouse and keyboard are specific computer hardware to make your exsperience with a computer more efficent and faster.

5 0
3 years ago
Ok there........................................................................
Juliette [100K]

Answer:

ok THERE

Explanation:

4 0
3 years ago
A solid circular cylinder of mass m, radius r, and length l is pivoted about a transverse axis
SashulF [63]
To be honest i have no idea
8 0
3 years ago
Other questions:
  • Which statement is true for the relay logic diagram shown below?
    9·1 answer
  • The solid cylinders AB and BC are bonded together at B and are attached to fixed supports at A and C. The modulus of rigidity is
    6·1 answer
  • An angle is observed repeatedly using the same equipment and procedures producing the data below:35 ∘ 40'00",35 ∘ 40'10",35 ∘ 40
    12·1 answer
  • Argon is compressed in a polytropic process with n = 1.2 from 100 kPa and 30°C to 1200 kPa in a piston–cylinder device. Determin
    14·1 answer
  • A flywheel made of Grade 30 cast iron (UTS = 217 MPa, UCS = 763 MPa, E = 100 GPa, density = 7100 Kg/m, Poisson's ratio = 0.26) h
    9·1 answer
  • Find all the words, Figure out my puzzle!
    14·2 answers
  • Best known for his invention of the pressure-ignited heat engine that bears his name,
    5·1 answer
  • What is the name of the type of rocker arm stud that does not require a valve adjustment?
    12·1 answer
  • 2. What is the Function of the Camshaft in an Internal Combustion Engine?
    13·1 answer
  • Imagine you are a process safety consultant and you have been tasked to make a metal refinery site DSEAR compliant. What are the
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!