Question: Assignment 1 Write Python Programs to solve the following: Assume 2 numbers A and show: Sum, Product, A / B and B / A .

Assignment 1
Write Python Programs to solve the following:
Assume 2 numbers A and show: Sum, Product, A/B and B/A.(2)
Take first name and last name from the user and display the following output on screen: (4)
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 A as smallest and Z as largest alphabet)
Last 4 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 E and E in the last name with A and display the full name
Display the spelling of any single digit that a user enters (e.g. if the user enters 0, the screen
should show (3)
Zero
(Hint: Use Dictionary)
Initialize a list of color names and write a program that does the following: (4)
Add the color BLACK to the end of the list
Replace 3rd 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: (2)
5 is of type (8+2j)
 Assignment 1 Write Python Programs to solve the following: Assume 2

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!