Question: Assignment 1 Write Python Programs to solve the following: Assume 2 numbers A and show: Sum, Product, A / B and B / A .
Assignment
Write Python Programs to solve the following:
Assume numbers A and show: Sum, Product, AB and BA
Take first name and last name from the user and display the following output on screen:
Hello followed by full name of the user
Total number of vowels in the full name of the user
Highest alphabet used in the first name Assuming as smallest and as largest alphabet
Last characters of the last name
First four characters of the first name
Full name in Upper Case
Full name in lower case
Replace all A in the first name with and in the last name with A and display the full name
Display the spelling of any single digit that a user enters eg if the user enters the screen
should show
Zero
Hint: Use Dictionary
Initialize a list of color names and write a program that does the following:
Add the color BLACK to the end of the list
Replace color in the list by BLUE
Display total count of colors in the list
Take a color from the user and display it's position Not the index in the list
Initialize numeric variables each of type integer, float and complex and display the type of each
of these variables. The output should look something like:
is of type
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
