Advanced Python
Codes
Name: Vyom Gulati
Class: X-A
Roll no.: 22
Page 1 of 36
Index
Term-1
Pg-6: Write a program to check whether the number
input by the user is an Armstrong number or not
Pg-7: Write a program to find the sum of all numbers
stored in a list
Pg-8: Write a program to ask for height in
centimeters and converting into feet and inches
Pg-9: Write a program to print numbers in a range
Pg-10: Write a program to calculate the surface area
and volume of a cuboid
Pg-11: Write a program to determine whether a
number is odd or even as well as whether it’s
negative or positive
Pg-12: Write a program to determine whether
someone is eligible to vote in the elections or not
Pg-13: Write a program to determine whether a
number is odd or even
Pg-14: Write a program using multiple looping
functions
Page 2 of 36
Pg-15: Write a program using multiple tuple
functions
Pg-16: Write a program using repetition and
traversing a tuple
Pg-17: Write a program using membership operators
of tuple
Pg-18: Write a program that checks whether the
number input from the user is a palindrome or not
Pg-19: Write a program to take the temperature of all
7 days of the week and display the average
temperature of that week
Pg-20: Write a program to delete an element from a
list
Term-2
Pg-21: Write a python code using a one dimensional
array
Pg-22: Write a python code using a one dimensional
array to print a range of values
Page 3 of 36
Pg-23: Write a python code using a one dimensional
array to print random floating numbers
Pg-24: Write a python code using a two dimensional
array to print random floating numbers
Pg-25: Write a python code using a two dimensional
array to print all values as one
Pg-26: Write a python code to calculate the
inventory of a store
Pg-27: Write a python code to calculate the revenue
of a store
Pg-28: Write a python code to calculate the speed of
a vehicle
Pg-29: Write a python code to calculate the square
of a number
Pg-30: Write a python code to access a file using
pandas
Pg-31: Write a python code to add and delete data
Pg-32: Write a python code to find mean, mode and
median
Pg-33: Write a python code to make a scatter plot
Page 4 of 36
Pg-34: Write a python code to make a bar graph
Pg-35: Write a python code to make a histograph
Pg-36: Write a python code to make a box plot
Page 5 of 36
Write a program to check whether the number
input by the user is an Armstrong number or not
Page 6 of 36
Write a program to find the sum of all number
stored in a list
Page 7 of 36
Write a program to ask for height in centimeters
and converting into feet and inches
Page 8 of 36
Write a program to print numbers in a range
Page 9 of 36
Write a program to calculate surfaces and
volume of a cuboid
Page 10 of 36
Write a program to determine whether a number
is odd or even as well as whether it’s negative or
positive
Page 11 of 36
Write a program to terminal whether someone is
eligible to vote the elections or not
Page 12 of 36
Write a program to determine whether a number
is odd or even
Page 13 of 36
Write a program using multiple looping functions
Page 14 of 36
Write a program using multiple tuple functions
Page 15 of 36
Write a program using repetition and traversing
a tuple
Page 16 of 36
Write a program using membership operators of
tuple
Page 17 of 36
Write a python program that checks whether the
number input from the user is a palindrome or
not
Page 18 of 36
Write program to take the temperature of all 7
days of the week and display the average
temperature of that week
Page 19 of 36
Write a program to delete an element from a list
Page 20 of 36
Write a python code using a one dimensional
array
Page 21 of 36
Write a python code using a one dimensional
array to print a range of values
Page 22 of 36
Write a python code using a one dimensional
array to print random floating numbers
Page 23 of 36
Write a python code using a two dimensional
array to print random floating numbers
Page 24 of 36
Write a python code using a two dimensional
array to print all values as one
Page 25 of 36
Write a python code to calculate the inventory of
a store
Page 26 of 36
Write a python code to calculate the revenue of a
store
Page 27 of 36
Write a python code to calculate the speed of a
vehicle
Page 28 of 36
Write a python code to calculate the square of a
number
Page 29 of 36
Write a python code to access a file using
pandas
Page 30 of 36
Write a python code to add and delete data
Page 31 of 36
Write a python code to find mean, mode and
median
Page 32 of 36
Write a python code to make a scatter plot
Page 33 of 36
Write a python code to make a bar graph
Page 34 of 36
Write a python code to make a histograph
Page 35 of 36
Write a python code to make a box plot
Page 36 of 36