Prerana Educational and Social Trust®
PES Institute of Technology & Management
NH-206,Sagar Road,Shivamogga-577204
Department of Computer Science and Engineering
ASSIGNMENT 2
2022-23
Academic Year Semester II (CSE stream)
Introduction to Python Programming
Course
BPLCK105B
University Course Code
[Link] S
Course Instructor
PYTHON FLOW CONTROL STATEMENTS
Design and develop programs in Python using function
1) Find the factorial of a number
2) Swap two numbers
3) Perform addition of numbers and concatenation of two strings.(design only one
function block)
4) Perform multiplication of numbers and replication of strings. (design only one
function block)
5) Find the biggest of two numbers .
6) Find the sum of n natural numbers(Pass n as parameter )
7) To find the cube of number
8) To find the ab (Pass a and b as parameters )
9) To find the area of a circle (Pass radius as parameter )
10)Perform addition using default arguments
Finnd the roots of a quadratic equation
Prerana Educational and Social Trust®
PES Institute of Technology & Management
NH-206,Sagar Road,Shivamogga-577204
Department of Computer Science and Engineering
Course Instructor HOD