programming languages for beginners

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.

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

Python Class and Object

Submitted by moazkhan on

In this tutorial you will learn:

  • Classes and Objects
  • Class in Python
  • Object in Python
  • Alter an Object

Classes and Objects

Object Oriented Programming Languages works with two main features Class and Object. In this programming paradigm we create containers that contains different properties and methods. These methods are used to modify the properties in some way and we name these containers as Classes. Objects are instances of a Class and they have access to the properties and methods of that class.