0% found this document useful (0 votes)
5 views2 pages

Python Programming Assignment Guide

The document outlines an assignment on Python programming, covering various topics such as features of Python, literals, operators, and the slicing operator. It includes programming tasks like swapping numbers, calculating employee salary, printing ASCII values, and calculating momentum using the formula E=mc^2. Each task aims to enhance understanding and application of Python concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Python Programming Assignment Guide

The document outlines an assignment on Python programming, covering various topics such as features of Python, literals, operators, and the slicing operator. It includes programming tasks like swapping numbers, calculating employee salary, printing ASCII values, and calculating momentum using the formula E=mc^2. Each task aims to enhance understanding and application of Python concepts.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like