0% found this document useful (0 votes)
5 views

Exercises Python Part1

Uploaded by

dahkyi847
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Exercises Python Part1

Uploaded by

dahkyi847
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

In this exercise you will create a program that reads a letter of the alphabet from the
user. If the user enters a, e, i, o or u then your program should display a message
indicating that the entered letter is a vowel. If the user enters y then your program should
display a message indicating that sometimes y is a vowel, and sometimes y is a
consonant. Otherwise your program should display a message indicating that the letter is
a consonant.
2. The length of a month varies from 28 to 31 days. In this exercise you will create a
program that reads the name of a month from the user as a string. Then your program
should display the number of days in that month. Display “28 or 29 days” for February so
that leap years are addressed.

You might also like