C
File Handling in C
Definition of File Handling in C File handling in C is the process of creating, opening, reading, writing, appending, updating, and closing files using a C program. A file represents a sequence of bytes on the disk where a group of related data is stored, ending with an end-of-file marker. Read more…
![]()
Python Theory
Exception Handling in Python
Introduction Exception handling is an OOPs concept of Python. Definition An exception is an error that occurs during program execution or run time. Characteristics Exception handling in Python is a mechanism used to handle runtime errors (exceptions) so that the normal flow of a program is not interrupted. Instead of Read more…
![]()
Python Theory
File Handling Examples in Python
Example : A Python program to create a new or blank file to store some contents. Example : A Python program to read the stored contents from a file. Example : A Python program to count the contents of a file. Example : A Python program to remove or delete the contents of a file or directory. Example Read more…
![]()
VB .Net Theory
Control Statements in VB .Net
Decision Statements in VB .Net Definition A decision statement in VB .NET is used to control the flow of execution of a program statement by allowing different blocks of code to execute based on conditions or logical expressions. Need for Decision Statements Decision statements are required to: Make programs dynamic Read more…
![]()
VB .Net Theory
Array & Collection
Array Introduction An array in VB .NET is a simple and static data structure. Definition In VB .NET, an Array in VB .NET is a collection of elements of the same data type stored in contiguous memory locations and accessed using a single variable name with an index. However, if an array Read more…
![]()
Python Theory
GUI in Python
Python offers several ways to create GUI (Graphical User Interface) user-friendly applications. Some of the most popular Python libraries are used for building GUI applications:- Tkinter (Built-in GUI Library) This library is already included with/pre-installed with Python/built into Python (no extra installation is needed). This is simple, easy, and lightweight. Read more…
![]()
Python Theory
File Handling in Python
Introduction File handling in Python allows us to read, write, and manipulate files (text or binary) stored on our system. Python provides several built-in functions to work with files, such as open(), remove(), write(), etc. Definition A file in Python is a storage unit on a computer where data can Read more…
![]()
Python Theory
String in Python (Examples)
Example : A Python program to Reverse each character of the String word. Example : A Python program to Reverse each word of the String Sentence. Example : A Python program to check whether the String is Palindrome. Example : A Python program to display the Output in a Formatted Read more…
![]()
Python Theory
Regular Expressions in Python (Examples)
Example : How to remove Extra Space from a String using Regular Expressions sub() function in Python. Example : How to Validate a Phone Number from a String value using the Regular Expression match() function in Python. Example : How to validate a String value with the required pattern for Read more…
![]()