Skip to main content

Python codes

Python Operators

In this tutorial you will learn:

  • Python Operators
  • Assignment Operators
  • Arithmetic Operators
  • Comparison Operators
  • Logical Operators

Python Operators

Operators are considered as the foundation of any programming language. Operators are symbols which can control the value of operands by performing different tasks based on the type of symbol.

Assignment Operators

Python Dictionary

In this tutorial you will learn:

  • Python Dictionary
  • Adding elements to a Dictionary
  • Accessing elements of a Dictionary
  • Removing elements from a Dictionary

Python Dictionary

Dictionary is a resource that that lists words and their meaning. So Dictionary data type in Python follow a similar concept, they define a key and a value. They are declared using curly brackets. Dictionaries in Python are mutable it means the values in a dictionary can be changed and they are also indexed but unordered.

Python Tuples and Sets

In this tutorial you will learn:

  • Python Tuples
  • Python Sets
  • Difference between Lists, Tuples and Sets
  • Accessing elements in Tuples and Sets
  • Adding elements in Tuples and Sets
  • Updating elements in Tuples and Sets
  • Removing elements from Tuples and Sets

Python Tuples

Tuple is simply a collection of immutable Python objects it means that those objects cannot be changed. One of the properties of Tuples is that they are ordered. In order to make a Tuple in Python we use round brackets.

Python Boolean

In this tutorial you will learn:

  • Boolean in Python
  • Boolean expressions
  • Importance of Boolean in programming.

Boolean in Python

Boolean is perhaps one of the most simple yet the most powerful data type not only in Python but in other programming languages as well. Boolean data type has either a value of True or a value of False. Even the keywords used in Python to define Booleans are True and False.

Python Strings

In this tutorial you will learn:

  • Strings in Python
  • Immutable and Mutable in Python
  • Joining two Strings
  • String Slicing
  • Finding length of a String

Strings in Python

In the previous tutorial we learned what variables are and how Python deals with variables. In this tutorial we will start by learning the details and usage of String type variable in Python.