Question: Basic Python Programming 3 test runs for each question Control Statements (if and loops) 2.Write a program to find whether the given number is even

Basic Python Programming

3 test runs for each question

Control Statements (if and loops)

2.Write a program to find whether the given number is even or odd. (use if else)

Sample Run 1

>>>

Enter any number : 125

125 is odd

Sample Run 2

>>>

Enter any number : 12

12 is even

3.

3.Write a program to determine whether the character entered is a vowel(a-e-i-o-u) or not. (use if-elif-else)

Sample Run 1

>>>

Enter any character : h

h is not a vowel

Sample Run 2

>>>

Enter any character : e

e is a vowel

4.Write a program to take single character input from the user and then check whether it is a number or a character. If it is a character, determine whether it is in uppercase or lowercase. If it is a number display A number was entered. The digits '0' to '9' are characters.

Sample Run 1

>>>

Enter any character : C

Uppercase character was entered

Sample Run 2

>>>

Enter any character : b

Lowercase character was entered

Sample Run 3

>>>

Enter any character : 2

A number was entered

8.6.1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!