Category Archives: Python Programming Language

List in Python With Examples

Tpoic: List in Python With Examples What is List in Python Language? List is a dynamic collection of items of different types. Lists contain utems similar to the arrays of other programming languages like C, C++ and Java etc. Difference between Array and List The array is the collection of items of same data type.… Read More: List in Python With Examples »

Loading

Logical Operators in Python Language

Topic: Logical Operators in Python Language Logical Operators in Python Language are used to create compound conditions. The compound conditions contain more than one conditions combined with logical operators. We use ‘and’ and ‘or’ logical operators to combine two or more conditions. Another logical operator ‘not’ is used to reverse the result of a condition.… Read More: Logical Operators in Python Language »

Loading

Creator of Python Language

Topic: Creator of Python Language Guido van Rossum is the creator of the Python Guido van Rossum is the creator of the Python Programming Language. Guido van Rossum developed Python and first release of the Python programming language was in 1991. He is a Dutch Programmer. He was born on 31 January 1956. He grew… Read More: Creator of Python Language »

Loading

Python pass Statement Example Code

Topic: Python pass Statement Example Code The pass statement in Python With Example Programs The Python pass statement indicates a null operation. Nothing happens, when the Python interpretor executes a pass statement. It is useful as a placeholder when a statement is required syntactically, but no code needs to be executed. For example: class MyClass:… Read More: Python pass Statement Example Code »

Loading

Use of break and continue in Python with Examples

Topic: Use of break and continue in Python with Examples What is the importance of break and continue Statements in Python with Examples? break Statement in Python In Python programming language, break statement is used to break ( terminate ) the for loop or while loop. As soon as the break statement is executed the… Read More: Use of break and continue in Python with Examples »

Loading

Python File Phonebook Program

Topic: Python file Phonebook Python file Phonebook Program: Write a Python Program using text files to create and maintain a Phone Book. Python Phone book Program uses file to provide the following functions: You can add new contact records It will display all the contact records stored already Search function will provide you the searching… Read More: Python File Phonebook Program »

Loading

Python File Copy Program using shutil.filecopy

Topic: Python File Copy Program using shutil.filecopy You can easily copy a source file to a destination file. For this purpose, perform the following steps: import shutil module, because the shutil module provides the copyfile() function to copy a source file into a destination file. input source file name input destination file name call shutil.copyfile(sourcefile,destinationfile)… Read More: Python File Copy Program using shutil.filecopy »

Loading

Find Occurrences of Each Word in Text File Python Program

Topic: Write a Python Program to Find Occurrences of Each Word in Text File Python Program Source Code : Python Program using Text File # Python program to count # number of occurences / frequencies of words in a text # Input filename, open it in # read mode. display its cntents # count and… Read More: Find Occurrences of Each Word in Text File Python Program »

Loading