ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 22 May 2017 My Price 8.00

return String based on parameter word

Hi, I am working on Python. Could you make this code by following below instructions?

1)

def check(word):

""" return String based on parameter word, a String """

# you write code here

Constraints

  • word contains between 1 and 50 characters, inclusive
  • each character of word will be a lower-case letter 'a'-'z'

Examples

  1. word = "pikapi"
    
    Returns: "YES"
    
        
    "pikapi" = "pi" + "ka" + "pi", so Pikachu can say it.
  2. word = "pipikachu"
    
    Returns: "YES"
    
        
    This time we have "pipikachu" = "pi" + "pi" + "ka" + "chu", so Pikachu can say it as well.
  3. word = "pikaqiu"
    
    Returns: "NO"
    
        
    Pikachu can't say "pikaqiu" since 'q' does not appear in "pi", "ka", or "chu".
  4. word = "chupikachupipichu"
    Returns: "YES"
    
        
  5. word = "duke"
    Returns: "NO"
        

Answers

(11)
Status NEW Posted 22 May 2017 02:05 AM My Price 8.00

-----------

Not Rated(0)