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

Session Handout-5

The document is a lab report for a Python programming course, detailing tasks related to writing, testing, and debugging simple Python programs. It includes code examples demonstrating the use of loops, conditionals, and functions. The report is authored by Jefin Chacko and dated July 20, 2022.

Uploaded by

fewade2243
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Session Handout-5

The document is a lab report for a Python programming course, detailing tasks related to writing, testing, and debugging simple Python programs. It includes code examples demonstrating the use of loops, conditionals, and functions. The report is authored by Jefin Chacko and dated July 20, 2022.

Uploaded by

fewade2243
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

FACULTY OF TECHNOLOGY

Information & Communication


Technology
Subject: PWP -01CT1309

Lab 5
Name: Jefin Chacko Date: 20/07/22
Enrollment No: 92100133013

CO1: To write, test, and debug simple Python programs


CO2: To implement Python programs with conditional, loops and functions

Task1:
Python Code:

for i in range (10):


if(i==5):
break
print(i)

for i in range (10):


if(i==5):
continue
print(i)

for i in range (10):


if(i==5):
pass
print(i)

#Functions
def Display():
print("Welcome in ict")
print(Display())

def add(a,b):
return a+b
print(add(2,3))

def Arithmetic(a,b):
return [a+b,a-b,a*b,a/b];
print(Arithmetic(4,2))

def odd(a):
if(a%)

|1
FACULTY OF TECHNOLOGY
Information & Communication
Technology
Subject: PWP -01CT1309
Output:

|2

You might also like