Python for CBSE

Program to read a text file in python

Program to read a text file in python. Today, we are going to learn, a program to read a text file and further print the contents of file along with number of vowels present in it using python language. This python program for beginners is useful for computer classes. This project is for the CBSE …

Python program to count number of vowels in a string

Today, we are going to discuss a python program, which will print a string and count number of vowels in Python. The python program is to print a string and calculation of number of vowels ,which will be discussed. This basic python program is very useful for beginners, CBSE Class 11 and 12 Computer Science …

Program to Print Pattern in Python

Today, we are going to discuss two Program to Print the Pattern in Python language. The python program to print number pattern and star pattern with source code will be discussed. This basic python program is very useful for beginners, CBSE Class 11,12 Computer Science and Project Practical file. i)Number pattern -This pattern starts with …

Write a Program to Print Fibonacci Series in Python

Write a Program (WAP) to Print Fibonacci Series in Python using for loop with source code. Further, addition of terms of Fibonacci series. This is a good program for beginners, CBSE KV Class 11 and 12 students practical project file and programmers. What is Fibonacci Series? In Fibonacci series numbers go from 0, 1, 1, …

Prime Number Program in Python

WAP to input a number and check whether it is prime number or not in Python Prime Number – a number that is divisible only by itself and 1. Example 3,5,7.etc. for this program it has to check every number up to n(The number to be checked) throughout using for loop iterative statement . WAP …

Python Program to Print Series and Addition

Python Programming to generate a series and sum the numbers of series. In the program an input value of x and power n will be given. On the basis of input the python program will print the series along with its addition. Python programming series and sum -How it works Here we are working on …

Greatest of Three Numbers in Python using Nested if

Greatest of Three Numbers in Python using Nested if. It involves variable assignment and if – else Nested conditional operator. This is for Beginners, class 11,12 and Btech computer science students. Write a program : WAP to input three numbers and print the greatest number in Python using nested if. Nested if in Python : …

Python Leap Year Program for Beginners

Python program- Writing a program to input a year and check whether the year is leap year or not. This python project is useful for beginners and CBSE KV Computer Science practical file. The step wise details with input source file and out put. What is Leap Year ? Leap years are years where an …

Hello World Program in Python

Today we are going to start with a very basic program of any computer language called ” Hello World”. This program print output as “Hello World”. Let us start with basics of Python and print the first program for beginners. You will also find the source code and Python code file at this post. The …