1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
azamat
3 years ago
9

Write a value-returning function isVowel that returns the value true if a given character is a vowel and otherwisereturns false.

Computers and Technology
1 answer:
Nastasia [14]3 years ago
8 0

Answer: Following is the function isVowel written in python:-

def isVowel(check):#defining isVowel function with parameter check

#following are the nested if else if for checking that check is a vowel or not if yes returning True if not returning False.

   if check == "A" or check =="a":

       return True

   elif check == "E" or check =="e":

       return True

   elif check == "I" or check =="i":

       return True

   elif check == "O" or check =="o":

       return True

   elif check == "U" or check =="u":

       return True

   else:

       return False

Explanation:

In the function we are checking in each if or elif statement that check is a vowel or not if it is a vowel then returning True if not returning False.

You might be interested in
1. Science is the body of knowledge and methods produced by engineering.
olga nikolaevna [1]
True. Technology changes society
6 0
3 years ago
*
asambeis [7]

Answer:

I think they're all valid but the validility depends on the website your using the usernames on.

Explanation:

6 0
3 years ago
Xxx<br>uuuuuu<br>uuuu<br>jjnmn<br>jjh
Leviafan [203]
Answer: What’s this??
7 0
3 years ago
Write an algorithim and flowchart to check it the temperature is more than 25°. If it more than 25°C switch fan on else off.​
Marianna [84]

Answer:

write the sly flowchart

Explanation:

#stdlib.etc

main()
{

    int temp;
    bool fan = false;

    print("enter the frigin temperature: ");

    read(temp);

    if (temp > 25)

     {
         fan = true;
         print("the fan is on");
     }
     else
      {

           print("the fan is off");

      }

      return 0;

}

8 0
2 years ago
Print even numbers till 50 in python coding.
e-lub [12.9K]

In python, you can use a simple list comprehension to solve this problem.

print([x for x in range(51) if x % 2 == 0])

This code prints all the even numbers from 0 to 50 including 0 and 50.

4 0
3 years ago
Other questions:
  • A server provides the services to take you to the correct website domain when you type cengage.com in your web browser. If this
    7·1 answer
  • you work in the Human Resources department of a company that has partnered with a similar company in Brazil on a big contract. y
    12·1 answer
  • Complete the following function to create a deep-copy on the heap of the argv array. Set the result pointer to point to your arr
    10·1 answer
  • How many cells does the organism have?\
    5·2 answers
  • In many cases, a ribbon organizes buttons and options in Select one: a. menus. b. sections. c. toolbars. d. groups.
    9·2 answers
  • Given the following class definition and the variable declaration:
    11·1 answer
  • 6) Read the article posted on The Verge entitled How to fight lies, tricks, and chaos online and summarize the four steps. Then
    15·1 answer
  • PLEASE HELP!!!!!! ASAP
    6·2 answers
  • Edhesive 7.2 code practice Write a function named ilovepython that prints out I love Python three times. Then, call that functio
    13·1 answer
  • What was the name of the first computer, developed by charles babbage?.
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!