Write a python function which will take a string as an argument. #First task is to take a string as user input and pass the value to the function. #Second task is to implement a function which will check whether all the alphabets from a to j (convert all the alphabets to lowercase) has appeared at least once in the given string or not. If all of these alphabets (a to j) appear at least once, then the result will be 5. If any one of the alphabets (a to j) is not in the given string, then the result will be 6. Return this result and print the statement, "Chelsea is the best club in England" that many times.   Example01: "A black jackal is hunting a full grown deer" Here all the alphabets from A to J are present at least once. So, the function will return 5 and will print the statement 5 times. Input: "A black jackal is hunting a full grown deer" Function Call: function_name("A black jackal is hunting a full grown deer") Output: Chelsea is the best club in England Chelsea is the best club in England Chelsea is the best club in England Chelsea is the best club in England Chelsea is the best club in England

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter6: User-defined Functions
Section: Chapter Questions
Problem 22PE
icon
Related questions
Question

Write a python function which will take a string as an argument.

#First task is to take a string as user input and pass the value to the function.

#Second task is to implement a function which will check whether all the alphabets from a to j (convert all the alphabets to lowercase) has appeared at least once in the given string or not.

  • If all of these alphabets (a to j) appear at least once, then the result will be 5.
  • If any one of the alphabets (a to j) is not in the given string, then the result will be 6.

Return this result and print the statement, "Chelsea is the best club in England" that many times.

 

Example01: "A black jackal is hunting a full grown deer"

Here all the alphabets from A to J are present at least once. So, the function will return 5 and will print the statement 5 times.

Input:
"A black jackal is hunting a full grown deer"
Function Call:
function_name("A black jackal is hunting a full grown deer")
Output:
Chelsea is the best club in England
Chelsea is the best club in England
Chelsea is the best club in England
Chelsea is the best club in England
Chelsea is the best club in England

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
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