Tagged: while

1

How To Pass and Parse Linux Bash Script Arguments and Parameters

Bash is powerful scripting language provides by various Linux distributions,Unix and BSD. If we need to make our script dynamic we generally use arguments. Arguments are provided to the script through command line. In this tutorial we will examine different use cases of argument passing and examples. Syntax In order...

0

How To Create Nested For Loops In Python?

While creating applications with python we generally need to use list like or array data structures. If we will iterate over list like data we generally use for loop. But some times the data may have multiple dimensions. In order to cope with multiple dimensions we have to define nested for loops....

0

How To Control Python For Loop with Break Statement?

Python provides for loops in order to iterate over given list, dictionary, array or similar iterable types. During iteration we may need to break and exit from the loop according to current condition. In this tutorial we will look how to break a python for loop with break statement with different examples. Break...

0

How To Loop and Iterate Over Python Dictionary?

Dictionaries provides simple data types with value and key. Dictionary data may be used in an iteration with for loop. By using for we can iterate over dictionary elements easily. In this tutorial we will look different ways to iterate over dictionary elements. Example Dictionary We will use following dictionary type...

0

Linux Bash For Loop Range Examples

Bash for loop is popular programming structure used by a lot of Linux system administrators. For loops can be used in a lot of different cases. We have all ready examined the bash while and for loop in the following tutorial. Bash For and While Loop Examples In this tutorial...

0

Python Script Change Mac Address Periodically

In this tutorial we will look a simple but useful code that changes windows operating system Mac address. Mac address is the unique address that specifies the network interface. A general thought that mac addresses can be changed. But is it not true. Mac addressee is provided by the network...

0

Php – While and Do While Loops

In previous chapter we have looked for and foreach loops. In this chapter we will look another Php programming language loop while and do while loops. While Loop while loop iterates over given code block unless the condition met. The condition is checked in before every step. If the condition do not meet the...

1

Php – For and Foreach Loops

Loops are used to iterate over some block of code again and again in given conditions. We can specify the code which will loop and the conditions we want to check or met. Php supports different loop types but for and foreach loops are the most popular and useful loop in Php...

0

C For Loop and Iteration

For loop is generally used for specified arrays or similar array like lists. For enumerates over given way and checks the condition whether it is met or not. Here is For syntax.

Initialize fired one time at the start of for loop and generally used to set some values. Condition is checked...

0

C – While Loops

Loops are used to loop and iterate through sequential data or similar serial output. Sequential data will be generally an array. For example to search in a array for a specific value while loop can be used. We will look 3 main loop mechanism provided by C programming language. While...

Enjoy this blog? Please spread the word :)