Additional Question For Practice

M3-R5.1 · Chapter 3: Introduction to Python · 4 min read

Question For Practice

Q1: Program to demonstrate how to enter data using input command

Q2: Program to demonstrate input command with massage

Q3: WAP to accept name and display  as “Name**Is**Prakash”

Q4: Program to add two inputted numbers by converting both the numbers into and int type using int()

Q5: Program to accept student’s detail using the input function and display it.

Q6: Write a Program to accept three number and print their sum

Q7: Write a Program to accept three number and print their Average

Q8:  Write a Program to obtain length and breadth of a rectangle and calculate its area)

Q9: Program to display months and days for entered no of days

Q10: Program to find the selling price. Cost price and profit is enter by user

Q11: Program to get the basic salary, Bonus, Commission , number of sold item and price of  an item of an employee and calculate his Gross salary

Q12:  Program to convert the time given into minutes in hours and minutes.

Q13: Program to accept Basic Salary of An Employee and hs 20% , da 50% and ta 10 of his basic salary will be given to An Employee so print his gross salary

Q14: Program to accept the value of c and d by the keyboard and swap the value of c and d

Q15: Write a Program to accept five subject marks of a student. And find the aggregate marks and percentage mark’s obtained by the student. Assume that the maximum marks in each subject is 100

Q16: Write a Program to accept a temperature of your city by keyboard  in Fahrenheit and convert it into Celsius

Q17: Consider a currency system in which there is notes of seven denominations namely, Rs.1, Rs.2, Rs.3, Rs.10, Rs.20, Rs.50, Rs.100. if amount is enter by the keyboard. Write a program to computer the smallest number of notes  that will combine to given Rs. N

Q18: Total selling price of 15 items and the total profit earned on them is input through the keyboard , write a program to find the cost price of one item.

Q19: Write a program to input a number and print its first five multiples.

Q20: Write a program that generates the following output- if we enter  5 it print as 5@10@9

Q 21: Write the program with a maximum three line of code and that assign first five multiples of number to 5 variable and then` print them .

Q22:  Write a program to input a single digit and print a three digit number created as < n (n+1) (n+2)>. e.g., if you input 7 then it should print 789. Assume that the input digit is range 1-7.

Q23: Write a program to read three number in three variables and swap first two variable with the sums of first and second ,second and third numbers respectively.

Q24:Write a program to Simple Calculator

Q25:Python Program to Find Sum of First and Last Digit of two digit number.