For-in loop is used to iterate over sequence like array, dictionary, string etc. In this example, I will show you use of for-in loop with different examples.Drop a comment if you have any queries.
ReadSwitch statement takes a value and compare it with different cases. If any case matches, it runs a block of code. It is like using multiple 'if' conditions and checking each of them one by one. A switch statement can be defined as below :.
ReadThis tutorial is to find Harshad or Niven number in Java. A Harshad or number or even number is a number that is divisible by its digits.
ReadIn this tutorial, we will learn how to find the saddle point of a matrix in Java. I will give you two examples. Try to run the program with different examples and let me know if you have any query.
ReadIn this tutorial, I will show you how to convert a decimal number to Hexadecimal in Java using two different methods.
ReadDictionaries are Collection that store key-value paired items.The values are of same type and all items are stored without any order. You can access any item using its key. It is not required that the keys should be a number always. All the keys should be of the same type and unique.A dictionary can be variable or constant in swift.
ReadASCII or American Standard Code for Information Interchange is a character encoding standard to represent characters in computers. By using a 7-bit binary number, a character is defined.
ReadUsing python, we can easily check the number of CPUs available in a system. In this example program, we will learn two different methods to get this count.
ReadPreviously we have discussed about arrays in swift. Similar to array, set is another collection data type in swift. The main difference is that the elements in a set are unordered and it contain only unique elements. In this tutorial, we will show you how to create a set and different set operations :.
ReadA docstring is a string that is used for documentation of a module,function,class or method in python. This string comes as the first statement after the name of the function , module etc . The value of a docstring can be printed out by using doc attribute of the object. So, if you want to know what a system module does, just print out its docstring. e.g. to know about 'int', use the following :.
Read