News

This is clearly not what you wanted to do. Python versions 3.6 and higher provide “type annotations,” a feature that enables you to define the type of data each function argument should take.
For instance, say we’ve collected a list of 1-10 ratings from an online survey. To simulate this, we’ll generate a list of 1,000 random numbers from 1 to 10 using the randint () function.