Example
Type Conversion
Changing data types using int(), float() and str() functions. Converting between types.
Showing 1–10 of 14
Example
Changing data types using int(), float() and str() functions. Converting between types.
Example
Python recognizes different data types automatically. Learn int, float, str and bool.
Example
Python allows changing variable type during program execution. This is dynamic typing.
Example
Combining regular parameters, *args and **kwargs in one function.
Example
Functions can return complex data structures like dictionaries or lists.
Example
Sets store only unique elements without a specific order.
Example
Parameters allow passing data to functions. Functions become more flexible.
Example
Tuples are immutable lists. Once created, they cannot be modified.
Example
Tuples have only two methods: count() for counting and index() for searching.
Example
Function can return multiple values as a tuple. Unpacking on assignment.