CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Python – Customize Truth Value testing

We have discussed Truth Value testing in our previous Articles “Python – Truth Value Testing” and “Python – Truth Value Testing for Class objects“. Through this article, we will discuss customizing Truth Value testing. We can customize Truth value testing by defining __bool__ and __len__ functions. Initially, Python verifies the definition of _bool_ function; if […]

PowerShell – Functions

Functions are code blocks holds the sequence of statements and can be called using their names whenever / wherever required. The list of statements inside the function are grouped with in the curly braces (“{ }”). Defining and using the Functions in PowerShell are easy and will discuss how to do this in this Article. […]

C# – Understanding of Structures

Structures are composite types and can contain different types of elements. That means, structures can contain integer elements, strings, floating point elements, and even other structure types etc.,. Unlike in C language, C# structures can encapsulates both data elements and the functions which are operating on the data. Structures are value types. Defining a structure […]

Scroll to top