Data Types
Let's learn about different data types in Powershell and Python.
Introduction
Python and PowerShell,like any other programming language, use markers to classify distinct types of data. Data types determine what value can be assigned to a variable and the operation we can perform on it.
Let’s discuss native data types in Python and PowerShell.
Common data types
In this lesson, we will discuss the three main data types in any programming language; namely, Numbers, Booleans, and Strings.
Let’s start with the numbers.
Numbers
In Python and PowerShell numbers written In Python and PowerShell, numbers written without decimals are considered as integers while numbers with decimals are considered as floating-point numbers (or floats). So, 1 is an integer and 1.0 is a floating-point number. These numeric data types can be used as arithmetic labels in a programming language and to perform basic math operations like addition, subtraction, multiplication and division.
Integers
In any programming language, integers ...