Blog Archives
1 2

01: Python Iterators, Generators & Decorators Tutorial

Assumes that Python3 is installed as described in Getting started with Python.

1. Iterators

Iterators don’t compute the value of …

Read more ›



02: Python comprehensions tutorial

Q. What is a comprehension?
A. Comprehensions are constructs that allow sequences to be built from other sequences. Python 2.0 introduced …

Read more ›



03: Python context manager tutorial

Q. What is a Python context manager?
A. The most common use of context managers is to properly manage resources. Context …

Read more ›



04: In Python functions are objects tutorial

Q. Are functions objects in Python?
A. Yes. In Python, a function is an object of type function. A function being …

Read more ›



05: Python debugging tutorial

Q. How would you go about debugging Python code?
A. Firstly, import pdb

Secondly, use “pdb.set_trace()” where ever you …

Read more ›



06: Object introspection in Python tutorial

Q1. What is an Object introspection? A1. It is the ability to determine type & properties of objects at runtime. … … Read more ›...

Members Only Content
Log In Register Home


07: Python dictionary tutorial

Q1. What is a dictionary in Python? A1. A dictionary is a general-purpose data structure for storing a group of objects … … Read more ›...

Members Only Content
Log In Register Home


08: Python Data modelling tutorial

Q1. What is Python data modelling? A1. Objects are Python’s abstraction for data. All data in a Python program is represented … … Read more ›...

Members Only Content
Log In Register Home


09: Python working with String tutorial

Strings in Python can be defined using either single or double quotations as they are functionally equivalent. In addition, it is … … Read more ›...

Members Only Content
Log In Register Home


10: Python working with collections tutorial

Python’s general purpose built-in containers are dict ( E.g. {‘a’:1, ‘b’:2, ‘c’:3} ), list ( E.g. [1,2,3,4] ), set ( E.g. … … Read more ›...

Members Only Content
Log In Register Home


11: Python *args and **kwargs tutorial

*args and **kwargs are mostly used in function definitions. *args and **kwargs allow you to pass a variable number of arguments… … Read more ›...

Members Only Content
Log In Register Home


12: Python enumerate vs zip tutorial

enumerate The enumerate() function can be used to iterate over indices and items of a list. It allows us to loop … … Read more ›...

Members Only Content
Log In Register Home


13: Python working with files tutorial

Create a file to read from Read from a file ‘r’ is for open file in read mode. handle exception & …… Read more ›...

Members Only Content
Log In Register Home


1 2

Java FAQs to Fast-track & Go places

Java Interview Q&As

Top