View Post

Dictionary in Python

In Programming, Python by Baqir Ali

Dictionary in Python is a type of list that can be index either number or string. Suppose we want to index them as Sunday, Monday, Tuesday etc. Using a dictionary …

View Post

Tuple in Python

In Programming, Python by Baqir Ali

Tuple stores multiple data in the same variable. Tuples work the same as lists but in the case of the tuple they are immutable, you can not modify the values …

View Post

List in Python

In Programming, Python by Baqir Ali

The list is a variable that stores multiple items in a single variable. The list in python somehow similar to the array in other languages but we can not call …

View Post

While Loop in Python

In Programming, Python by Baqir Ali

While loop is a loop that keeps iterating or repeating until the condition is false. We use while loop when the number of repetitions is unknown to us. Example code …

View Post

Mathematical Function in Python

In Programming, Python by Baqir Ali

Just like other languages python also provides some built-in arithmetic functions that help us write mathematical formulas. These functions are in python’s cmath module. These functions lie in math module, …