Case Sensitivity, Indentation, and Comments
Explore the differences in case sensitivity between Python and PowerShell, the role of indentation in Python for code structure, and the syntax for single-line and multi-line comments in both languages.
We'll cover the following...
We'll cover the following...
Case Sensitivity
Powershell is a case-insensitive scripting language, which means it is interpreted the same regardless of the case of keywords, functions, or the names of variables.
## Changing of case of properties, methods and name of variable has no impact
PS \> $string = 'this is a string'
PS \> $string.Length
16
PS \> $string.length
16
PS \> $string.IndexOf('g')
15
PS \> $string.indexof('g')
15
PS \> $STRING
this is a ...