# Simple python Programs

## Python program to find area of cone circle using inheritance

Python program to find the area of cone circle using inheritance Write a python program with Abstract Class Shape. Cone and Circle are the two classes that derive properties from shape. Also, find the area of the circle and Cone using Inheritance in Python. Video Tutorial Source Code to find the area of cone circle …

## Python program to Overload operators +, – and >=

Python program to Overload operators +, – and >= Write a class Money with attributes Rupees and Paise. Overload operators + (addition of objects), – (subtraction of objects), and >=(comparing objects) so that they may be used on two objects. Also write functions so that a desired amount of money can be either added, subtracted …

## File Handling in Python

File Handling in Python Video Tutorial Following are files used for demonstration: file1.txt, file2.txt, and file3.txt File Handling in Python¶ In [ ]: fp = open("file1.txt") for line in fp: #line = line.rstrip() print (line, end = '') In : fp = open("file1.txt") for line in fp: line = line.rstrip() print (line) HIT Nidasoshi Hukkeri VTU Belagavi Kanrataka …

## Python program to read numbers find the Maximum Minimum

Python program to read numbers repeatedly find the total, an average of numbers Develop a program that repeatedly reads numbers until the user enters “done”. Once “done” is entered, print out the maximum and minimum of the numbers. If the user enters anything other than a number, detect their mistake using try and except and …

## Python program to read numbers find the total average

Python program to read numbers repeatedly find the total, an average of numbers Develop a program that repeatedly reads numbers until the user enters “done”. Once “done” is entered, print out the total, count, and average of the numbers. If the user enters anything other than a number, detect their mistake using try and except …

## Python program to generate first n Fibonacci numbers

Python program to print first n Fibonacci numbers Write a Python program to accept a number from the user, and generate first n Fibonacci numbers. Video Tutorial What is the meaning of a Fibonacci series ..? Fibonacci series: 0, 1, 1, 2, 3, 5, 8, 13 and so on… The first number in the Fibonacci …

## Python program to print all prime numbers in range

Python program to print all prime numbers in the given range Write a Python program to accept a start number and end number from the user, and print all prime numbers in the given range (between the start and end number). Video Tutorial What is the meaning of a Prime Number..? A number is said …

## Python program to check number is prime or not

Python program to check whether the given number is prime or not Write a Python program to accept a number from the user, and check whether the given number is a Prime Number or Not Video Tutorial What is the meaning of a Prime Number..? A number is said to be prime if it is …

## Python program to check number is Armstrong or not

Python program to check whether the given number is Armstrong Number or Not Write a Python program to accept a number from the user, and check whether the given number is Armstrong Number or Not Video Tutorial What is the meaning of an Armstrong Number..? A number is an Armstrong number when the sum of …

## Python program to check number is palindrome or not

Python program to check whether the given number is palindrome or not Write a Python program to accept a number from the user, and check whether the given number is palindrome or not. Video Tutorial What is the meaning of a palindrome Number..? A number is said to be palindrome if the number is equal …