Task1: Write a python program to accept student information and
store into 3 variables
i.e
student id store into sid variable
student name store into sname variable
student phone number store into sphno variable
print these 3 values?
sid=123
sname=ram
sphno=123456
print(sid)
print(sname)
print(sphno)
Task 2 - Write a python program to accept customer information and store into 3 variables. i.e
customer id into cid variable
customer name into cname variable
customer mail id into cmailid variable
customer phone number into cphno
print cid,cname,cmail,cmailid,cphnoto the user?
Step1 - Output
id: 123
name: Ram
mail: mail@gmail.com
phone: 123456
program:
-----------------------------------
HW:
Task1: Write a python program to accept student 3 subject marks and store into 3 variables. Calculate the total marks and display the total marks?
Task2: Write a python program to accept student 6 subject marks and store into 6 variables. Calculate the total marks and average marks. Finally display the total marks and average marks to the user?
task3 - Write a python program to accept 3 products cost and store into 3 variables . Calculate 10% discount then display total bill to the user after the discount?
Task4 - write a python program to accept 6 products cost and store into 6 variables and calculate 20% discount and 30% tax. Then calculate total bill and display the total bill after discount and tax.
Friday, July 9, 2021
Python - Assignment
Subscribe to:
Post Comments (Atom)
Git branch show detached HEAD
Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03) 00 2. Run re-set hard $ git reset --hard 3. ...
-
snmpconfig command allow you to managge snmpv1/v3 agent configuration on SAN switch. Event trap level is mapped with event severity level....
-
Firmware upgrade on HPE SuperDom Flex 280 - prerequisites tasks a. Set up repo b. Upload firmware to your webserver 1. For foundation so...
-
Disabling the Telnet protocol on Brocade SAN switches By default, telnet is enabled on Brocade SAN switches. As part of security hardening o...
No comments:
Post a Comment