IX Practicals
IX Practicals
IX Practicals
Date Topic
No No
5 Simple IF Statement
6 Nested IF Statement
12 Printing a Pattern
15 List – Operations
Aim:
To write a Python program that ask for our name and age, and then displays it on
the screen.
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 2
Date:
Aim:
To write a Python program that accepts a number and then prints a table for that
number.
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 3
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 4
Date:
Flowchart:
\
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 5
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 6
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 7
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 8
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 9
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 10
Date:
Aim: To write python code to Print each fruit in a fruit list using for
loop.
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 11
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 12
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 13
Date:
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 14
Date:
Flowchart:
Program:
list = [10,11,12,13,14,15,16,17,18,19,20]
print ("Elements of the List")
print (list)
list[3]=list[1]+list[2]
print("Added 2nd & 3rd items and store the added result as 4th
item")
print (list)
list.pop(3)
print("List after deleting 4th item")
print (list)
list.insert(3,13)
print ("List after adding 13 as the 4th item")
print (list)
print ("Program submitted by ABC of Class IX A")
Output:
Result:
Thus the program is executed successfully.
Exercise No: 15
Date:
Aim: To Write a python program to enter three numbers into a
list (user input) and printing their sum and product.
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.
Exercise No: 16
Date:
Aim:
To Write a python program to check if a given number is
an Armstrong number.
Flowchart:
Program:
Output:
Result:
Thus the program is executed successfully.