Assignment of Python
(1) Decribe a features of python
(2) What are literals explain with the help of
example
(3) list various operators supported in python
(4) What is slicing operator how can you extract a
substring from a given string
(5) Write a program to swap two numbers using a
temporary variables
(6) Write a program that prompts user to enter two
integers x and y and then
(7) Write a program to calculate the salary of an
employee given his basic pay pay define HRA and
TA as consants and calculate the salary of an
employee
(8) Write a program to print the ascii value of a
character
(9) Write a program to calculate the no of seconds
in a day
(10) Momemtum is calculated E=mc^2 where m is
the mass c is the velocity write a program that
accepts objects mass and velocity and display
momemtum