Python File Writing

Submitted by moazkhan on

In this tutorial you will learn:

  • File Writing Modes
  • File Writing in Python
  • Deleting a File

File Writing Modes

In Python we have the ‘w,’ ‘a’ and ‘+’ for writing to a file. For appending data to an already written file we use ‘a’

Python File Reading

Submitted by moazkhan on

In this tutorial you will learn:

  • File Handling
  • File Handling in Python

File Handling

File Handling is an important concept to cover while learning any programming language. We need file handling to create, read, update or delete files. One of the biggest benefits of handling a file is that we can arrange data any way we want without requiring a specific template to follow. But using files for storing data works best for only small datasets. For larger datasets we may need to use a database.

Calculate Sub Total in DataGridView Using Visual Basic .NET

Submitted by BRAHIMCHKOUK on
Application Program using Visual studio 2010 and MS Access to calculate sub total in DataGridView. This application is an example on how to calculate the different subtotal numeric columns (sum, number and average) in a DataGridView linked to the Access database by choosing various columns (each time the column is changed) with a small touch-up of animation Label.

Python Operator Overloading

Submitted by moazkhan on

In this tutorial you will learn:

  • Operator Overloading
  • Operator Overloading in Python
  • Overloading Addition Operator
  • Overloading Subtraction Operator
  • Overloading Multiplication Operator

Operator Overloading

Sometimes we want to modify the functionality of the common operators such as ‘+, -, * and /‘ and we can do that through a concept known as Operator Overloading. So Operator Overloading allows us to extend the functionality of that operator.

Operator Overloading in Python

Python Custom Modules

Submitted by moazkhan on

In this tutorial you will learn:

  • Modules
  • Modules in Python
  • Creating your own Modules
  • Using your own Modules
  • Finding contents of a Module

Modules

We have been using Modules for quite a while now. We noticed that after importing the modules we had access to more functions in our code. So a Module is a package that contains different sets of functions, classes and variables. Whenever be bring the module in our code we get those extra functions by just writing a single line of code at the top.

Python JSON Parsing

Submitted by moazkhan on

In this tutorial you will learn:

  • JSON
  • JSON parsing in Python
  • Converting to JSON

JSON

JSON simply means Javascript Object Notation. It’s a standard format for exchanging data. It provides a simple way to organize information in easily readable format. JSON is important in Python because Python can also handle backend and front end web development tasks. An excellent library used for web development tasks in Python is called django.

Python Iterators

Submitted by moazkhan on

In this tutorial you will learn:

  • Iterators
  • Iterators in Python
  • Developing your own Iterator

Iterator

We use iterator when we want to go through all elements of collection. It doesn’t need a specific collection or data type, it works irrespective of implementation.

Iterators in Python

ListView demo

Submitted by Prasenjit Halder on
ListView demo. This is a simple example of listview. User can add, edit and delete records and use it later on. User can extend listview column, user can use it as option panel also. This example came with some code which user can extend and manage according to requirement.