s1. "Smngs are m hing "in" S2 ind= s1. find ("t') (51 print replact (s2,"J")) Which of he tollowing truc? a) the outpur is "Str Jgs arl he th Jg" me ouniut s "Strinăs are me thin" d)S1 has nm value "shngs are m ing"

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 27SA
icon
Related questions
Question

python

Conside h ilomry code
L s1 "Smings are mi ming
S2 -
"in
ind= s1. findd("t')
print (s1. replau (52, J"))
Which of he tollowing s te!
a) the outpur is "Str Jgs arl he thJg"
b) m outpur. S StrJgs are m mng
he ounut s "Smings are me Thing".
d)sI has m value "shings are me hing
er s1 has me value "Str Jas are the th Jay
f) s1 has m value "ShJgs are he thing
)ind has he value I
ind has the value 12
i)ind has me value [1,22,16]
Transcribed Image Text:Conside h ilomry code L s1 "Smings are mi ming S2 - "in ind= s1. findd("t') print (s1. replau (52, J")) Which of he tollowing s te! a) the outpur is "Str Jgs arl he thJg" b) m outpur. S StrJgs are m mng he ounut s "Smings are me Thing". d)sI has m value "shings are me hing er s1 has me value "Str Jas are the th Jay f) s1 has m value "ShJgs are he thing )ind has he value I ind has the value 12 i)ind has me value [1,22,16]
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning