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
A balanced three-phase 208 V wye-connected source supplies a balanced three-phase wyeconnected load. If the line current IA is m
tatyana61 [14]

Answer:

6.004 Ω

Explanation:

For  a Y- connected system given that :

Line voltage, $V_L = 208 \ V$

Line current , $I_L=20\ A$

and specified that $V_L \ and \ I_L$ are in phase.

Hence the impedance will be pure resistive.

For Y-system

$V_L = \sqrt3 V_{ph}$

$V_{ph}$ = phase voltage

$V_{ph}$ $=\frac{V_L}{\sqrt3} = \frac{208}{\sqrt3}$

    = 120.08 V

Line current = Phase current

$I_L = I_{ph} = 20 \ A$

Now, $z_{ph} = \frac{V_{ph}}{I_{ph}}=\frac{120.08}{20}$

                          = 6.004 Ω

5 0
4 years ago
In the following code, determine the values of the symbols here and there. Write the object code in hexadecimal. (Do not predict
allsm [11]

Answer:

Answer explained below

Explanation:

The value of here is 9

The value of there is hexadecimal value of DECO here, d = 0x39 aaaa (aaaa is the memory address of here )

We have the object code :-

let's take there address is 0x0007

0x0005 BR there :- 0x120020

0x0007 here: .WORD 9

310003 there: DECO here,d - 0x390007

310005 STOP

.END

4 0
3 years ago
Which of the following is an example of an observation?
Novay_Z [31]
The monkey is brown!
6 0
3 years ago
Read 2 more answers
Air enters a 200 mm diameter adiabatic nozzle at 195 deg C, 500 kPa and 100 m/s. It exits at 85 kPa. If the exit diameter is 158
ahrayia [7]

Answer:

v_2 = 160.23 m/s

T_2 = 475.797 k

Explanation:

given data:

Diameter =d_1 = 200mm

t_1 =195 degree

p_1 =500 kPa

v_1 = 100m/s

p_2 = 85kPa

d_2 = 158mm

from continuity equation

A_1v_1 = A_2v_2

v_2 = \frac{\frac{\pi}{4}d_1^2 v_1^2}{\frac{\pi}{4}d_2^2}

v_2 = \frac{d_2v_1}{d_2^2}

v_2 = [\frac{d_1}{d_2}]^2 v_1

      = [\frac{0.200}{0.158}]^2 \times 100

v_2 = 160.23 m/s

by energy flow equation

h_1 + \frac{v_1^2}{2} +gz_1 +q =h_2 + \frac{v_2^2}{2} +gz_2 +w

z_1 =z_2 and q =0, w =0 for nozzle

therefore we have

h_1 -h_2 =\frac{v_1^2}{2} -\frac{v_2^2}{2}

dh = \frac{1}{2} (v_1^2 -v_2^2)

but we know dh = Cp dt

hence our equation become

Cp(T_2 -T_1) = \frac{1}{2} (v_1^2 -v_2^2)

Cp (T_2 -T_1) = 7836.94

(T_2 -T_1) = \frac{7836.94}{1.005*10^3}

(T_2 -T_1) = 7.797

T_2 = 7.797 +468 = 475.797 k

8 0
3 years ago
Exposure to asbestos dust can cause what condition?
Natali5045456 [20]
If you end up breathing asbestos fibers, it can increase the risk of serous diseases. Some examples are lung cancer, mesothelioma and asbestosis. It may also increase your risk for cancers of the digestive system, which includes colon cancer. Asbestos is dangerous when fibers become airborne. That is because once a person ingests or inhales asbestos, the fiber can’t be removable from the body. The fibers can cause irritation and scarring over time if it’s embed into the tissue.
4 0
3 years ago
Other questions:
  • A measure of the probability, consequences, and exposure related to an event is referred to as a. safety b. evaluation c. risk d
    14·1 answer
  • Coefficients of friction always involve how many materials? a. 0 b. 1 c. 2 d. 3
    15·1 answer
  • What is the magnitude of the maximum stress that exist at the tip of an internal crack having a radius of curvature of 1.9 x 10-
    9·1 answer
  • A cubical picnic chest of length 0.5 m, constructed of sheet styrofoam of thickness 0.025 m, contains ice at 0\[Degree]C. The th
    11·1 answer
  • Beryllium (Be) has an HCP unit cell for which the ratio of the lattice parameters c/a is 1.568. If the radius of the Be atom is
    10·1 answer
  • Resistance in a circuit that has 35 mA of current and 5.6 V applied equals.
    9·1 answer
  • The linkage is made of three pin-connected A992 steel members, each having a diameter of 114 in. A three-member system. Pin supp
    6·1 answer
  • Which of these passages is an example of cohesive writing?
    9·2 answers
  • Join the pad let <br><br> https://pad let.com/56021812/8g75510tedza5v2a
    6·2 answers
  • The two aircraft did not collide but missed each other by no more than a millimeter. Are you required to notify any government a
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!