SUMMER VACATION ASSIGNMENT
SUMMER VACATION ASSIGNMENT
Q.11-Write a program to read three numbers in three variables and swap first two variables with the sums of first and
second, second and third numbers respectively
Q.12-WAP to input employee details –name, designation, department and salary. Print all the details on the screen
Q.13-WAP to input employee details –name, designation, department and salary. Calculate house rent allowance as 5%
of salary. Now print name, designation, salary and house rent allowance of the employee
Q.14-Write a program to input name of sales man, city and sales of 6 days. Find the total sales and average sales. Also
calculate the incentive if it is 10% of total sales.
Q.15- write a program to input a number and print the value of ( n2+n3+ n)/2n
Q.16. What is a python variable? Identify the variables that are invalid and state the reason:-
Class do while 4d a+ try %ph phone sub#1 manu class&sec filename
Q.17. What is None?
Q.18. How strings are represented in Python?
Q.19. Write a program to product and average of 5 numbers entered by the user.
Q.20. find the output of the following expressions:-
[1]>>> 15+7/3-2 [2]>>> 4*3+5/6+8//5 [3]>>> 32/7+3/5-9 [4]>>> 17//8//3%7 [5] 78/3+23-2