![subject](/tpl/images/cats/User.png)
Engineering, 16.06.2020 22:57 tonio638
Tip: String. find(searchWord)In this challenge, you will be asked to find one string in the text of another string. Python provides a function to help with this called find() that can be called on any string. To find a string needle in another string haystack, use haystack. find(needle), which will return the position where needle was found, or -1 if it was not found at all. haystack= 'abc def ghi'needle= 'def'needleLocation= haystack. find(needle)print(needneedleLocatio n)print(haystack. find('chicken'))RUN FIND TESTWrite a function isRed() that accepts a string parameter and looks for the presence of the word ‘red’ in the string. If it is found, return boolean True otherwise False. Finally output the result of calling the function with the value in text. CHECK IT!# Get our input from the command lineimport systext= sys. argv[1]# Write your code here
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Engineering
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:20
Vibration monitoring this technique uses the noise or vibration created by mechanical equipment and in seme cases by plant systems to detemine their actual condtion. a)- true b)- false
Answers: 2
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:20
Inadequate stores control is not an obstacle to effective work order system. (clo4) a)-true b)-false
Answers: 3
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:20
Aquick transition of the operating speed of a shaft from its critical speed will whirl amplitude. (a) increase (b) limit (c) not affect (d) zero
Answers: 2
![question](/tpl/images/cats/User.png)
Engineering, 04.07.2019 18:20
Find the minimum film thickness for a journal bearing with the data below. shaft diameter, d-50 mm, clearance ratio, cdratio? 0.001, shaft speed, n 2000 rpm; bearing length. i 200 mm; eccentricity ration, ? -0.55. ( note, cdratio-ca/d) the minimum film thickness is um
Answers: 2
You know the right answer?
Tip: String. find(searchWord)In this challenge, you will be asked to find one string in the text of...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 06:10
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 06:10
![question](/tpl/images/cats/geografiya.png)
Geography, 09.06.2021 06:10
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/himiya.png)
Chemistry, 09.06.2021 06:10
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 06:10
![question](/tpl/images/cats/istoriya.png)
History, 09.06.2021 06:10
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
Physics, 09.06.2021 06:10
![question](/tpl/images/cats/mkx.png)
Arts, 09.06.2021 06:10
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 06:10
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 06:10
![question](/tpl/images/cats/mat.png)
Mathematics, 09.06.2021 06:10
![question](/tpl/images/cats/en.png)
English, 09.06.2021 06:10
![question](/tpl/images/cats/fizika.png)