0% found this document useful (0 votes)
19 views1 page

Python Programming Assignment 1

The document outlines an assignment for the CSE (AI) department at KIET Group of Institutions for the B. Tech course in the 2023-2024 odd semester. It includes a list of programming tasks to be completed in Python, such as calculating the area of a triangle using Heron's formula, converting weight from kilograms to pounds, and displaying an examination schedule. Students are required to upload their .ipynb files with the completed programs.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Python Programming Assignment 1

The document outlines an assignment for the CSE (AI) department at KIET Group of Institutions for the B. Tech course in the 2023-2024 odd semester. It includes a list of programming tasks to be completed in Python, such as calculating the area of a triangle using Heron's formula, converting weight from kilograms to pounds, and displaying an examination schedule. Students are required to upload their .ipynb files with the completed programs.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

KIET Group of Institutions

Assignment-1 (2023-2024) ODD Semester

Department: CSE (AI) Course: B. Tech


Year: 2023 Semester: 3
Subject Name: Python Programming Subject Code: BCC-302

ASSIGNMENT-1
WRITE THE FOLLOWING PROGRAMS AND UPLOAD YOUR .ipynb
FILES
1. Heron's formula gives the area, A, of a triangle with sides a,b,c as:
2. Write a program that asks the user for a weight in kilograms and converts it to pounds. There are 2.2 pounds in a
kilogram.
3. Ask the user to enter a number x . Use the sep optional argument to print out x , 2x , 3x , 4x ,and 5x , each
separated by three dashes, like below.
4. Write a program that asks the user to enter three numbers (use three separate input statements). Create variables
called total and average that hold the sum and average of the three numbers and print out the values of total and
average .
5. Ask the user to enter a number. Print out the square of the number, but use the sep optional argument to print it
out in a full sentence that ends in a period.
6. Write a Python program to display the examination schedule. (extract the date from exam_st_date).
exam_st_date = (11, 12, 2014)
Sample Output : The examination will start from : 11 / 12 / 2014

You might also like