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

Python Flow Control Assignment Guide

This document outlines an assignment for the Introduction to Python Programming course at PES Institute of Technology & Management. It includes tasks such as finding the factorial of a number, swapping two numbers, and performing various mathematical operations using Python function blocks. The assignment is intended for the second semester of the academic year 2022-23 in the Computer Science and Engineering department.

Uploaded by

Pratibha S
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)
15 views2 pages

Python Flow Control Assignment Guide

This document outlines an assignment for the Introduction to Python Programming course at PES Institute of Technology & Management. It includes tasks such as finding the factorial of a number, swapping two numbers, and performing various mathematical operations using Python function blocks. The assignment is intended for the second semester of the academic year 2022-23 in the Computer Science and Engineering department.

Uploaded by

Pratibha S
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

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

You might also like