anonomyus anonomyus
  • 15-10-2020
  • Computers and Technology
contestada

Using Phyton

Write a program with the following functions.

function 1: Accepts 2 strings as arguments. returns true if the second string is a part of the first string.

Respuesta :

Cytokine
Cytokine Cytokine
  • 15-10-2020

def something(string1, string2):

return True if string2 in string1 else False

This would be the most concise way of writing this function.

Answer Link

Otras preguntas

Belinda uses drink mix to make a 2 quart pitcher of lemonade. She has a can of drink mix that makes 3 gallons. How many pitchers can she make.
A salesperson receives a 3% commission on sales. The salesperson receives $180 in commission. What is the amount of sales?
How to convert this equation to y=mx+b form: 2(y-x)=2y-14
1 3/4 divided by 2 plz help thanks!
Tina completed two-thirds of her homework George completed 78 of his homework who completed a greater fraction of homework
Michelle went on a hike. She started on the trail at 6:45 a.m and returned at 3:28 p.m. How long did she hike?
Six friends share 4 apples. Howuch apple does each friend have?
The case in which the Supreme Court claimed the power of judicial review (the authority to declare a law unconstitutional) was __________.
evaluate expression 3(7+x2);x=2
8.45 as a mixed number