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