Search⌘ K
AI Features

Built-In Function: Selection and Arrangement

Explore how to perform random selection and arrange data using Python's built-in functions. Understand how Python's randint() compares to PowerShell's Get-Random and how sorted() handles ascending and descending list sorting for effective data manipulation.

Random Selection

PowerShell has a Get-Random cmdlet to return a random number where we can define the maximum and minimum possible number within a range.

Python 3.5
Get-Random -Minimum 0 -Maximum 9
...