Reflection is a useful feature in Java that allows you to programmatically navigate and manipulate an object. Java frameworks created for Object Relational Mapping (Hibernate, etc..) and Testing (JUnit, TestNG) utilizes reflection. Also, you can use reflection to simply access private member values and methods. (Sometimes required when you are dealing with third party code).
Python dictionary is an easy to use data structure. In the previous tutorial I covered creating, setting values, deleting values and checking existence of a key. For this tutorial I am going to cover how to access keys, values and items, how to use dictionary comprehension and many more.
Python 3 dictionary is a versatile and easy to use hash-map implementation. It is simply a built-in data type that you can hack upon.
Python 3 sequence slicing is a pythonic way of accessing a portion of a sequence. Slicing copies, the selected data to a new sequence of same type (Shallow copy).
For loops are one of the basic iterative structures available in most programming languages. You’ll also find that there is a variant of typical for loops called foreach loops that lets you access elements of a sequence. In python 3, the for loop works similarly to the foreach loop.
So in previous tutorials we got our hands dirty with some quick and easy code. Now we are going to dabble with some serious stuff using Python 3 Script Syntax. Continue reading