Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program, with comments, to do the following: Ask the user to enter their

ID: 3805018 • Letter: W

Question

Write a program, with comments, to do the following: Ask the user to enter their first name. the user may enter the name using uppercase or lowercase letters. If the name stalls with a vowel, print the message Your name starts with a vowel, otherwise print the message Your name starts with a consonant Print the first letter of the name in uppercase, along with a suitable message. This part should be executed for all cases, whether the name starts with a vowel or consonant. An example run is shown below.

Explanation / Answer

code:

import os
import sys

name=str(raw_input("enter your name"))
if name[0] in "aeiou":
print "your name starts with vowel"
else:
print "your name starts with consonent"

print "The first letter of your name: "+ name.upper()[0]

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote