Join Regular Classroom : Visit ClassroomTech

coding

Multidimensional array in java

In Java, multidimensional arrays are actually arrays of arrays. Data in multi-dimensional arrays are stored in tabular form. Example : Syntax: Data_type[1st dimension][2nd dimension]—-[Nth dimension] array_name=new data_type[size1][size2]—-[size N]; Where datatype Type of data to be stored in the array. For example int, char, etc. Dimension: The dimension of the array created. For example : 1D,

Multidimensional array in java Read More »

Python Dictionary – iteritems() method

It is a method in python that returns an iterator object of the dictionary.Note: it is only for python 2.7 or below Syntax:dictionary.iteritems() Also Read: Python Dictionary – setdefault() method Example 1: Output: Explanation:Here it returned an iterator object of the dictionary. Example 2: Output: Explanation:Here it returned an iterator object of the dictionary. You

Python Dictionary – iteritems() method Read More »

Python List – drop first element of the list

There are many ways of doing it- 1. pop method – list.pop()2. remove method – list.remove(list[index])3. del function – del list[index]4. slicing – list[1:] Here is an example for you Output: Explanation:Here, pop(0) pops the first element from the list.remove(b[0]) removes the element indexed at 0 i.e. the first element.del c[0] deletes the first element

Python List – drop first element of the list Read More »