while – POFTUT

Foreach Usage In PHP, JavaScript, Java, C#, Python Programming Languages with Examples

Loops are an important part of the programming languages. For and While loops are used for decades in different programming languages. Foreach provides similar functionality in a more elegant way by iterating over the given list. In this tutorial, we will examine foreach in different programming languages like PHP, JavaScript, Java, C# and Python. PHP … Read more

While Loop In Java, Javascript, C++, C#, Python Programming Languages

While Loop In Java, Javascript, C++, C#, Python Programming Languages

Programming languages like Javascript, C++, C#, Python provides while loops in order to iterate over the given list, array, set etc. while loop is a very important part of the programming language because of its functionality. In this tutorial, we will examine and compare a while loop for programming languages like Javascript, C++, C#, and … Read more

How To Pass and Parse Linux Bash Script Arguments and Parameters

Bash is a 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 the command line. In this tutorial, we will examine different use cases of argument passing and examples. Syntax In order to use … Read more

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. Nested For Loop for loops can … Read more

How To Control Python For Loop with Break Statement?

How To Control Python For Loop with Break Statement?

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

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 we will look more specific … Read more

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 card to the operations system … Read more

Php – While and Do While Loops

[rps-include post=6522] 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 while loop will … Read more

C For Loop and Iteration

[rps-include post=6557] 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. for (initialize;condition;increment) { statements } Initialize fired one time at the start of for loop and generally used to set some values. Condition is … Read more