Example
Special Characters in Print
Special characters like \n and \t allow formatting text with new lines and tabs.
Showing 21–30 of 46
Example
Special characters like \n and \t allow formatting text with new lines and tabs.
Example
…a value from function. Function can perform calculations and give result.
Example
Combining regular parameters, *args and **kwargs in one function.
Example
Addition, subtraction, multiplication and division in Python. Basic arithmetic operations.
Example
Changing data types using int(), float() and str() functions. Converting between types.
Example
…different data types automatically. Learn int, float, str and bool.
Example
Variables store data in your program. Learning to create and name variables in Python.
Example
Sets store only unique elements without a specific order.
Example
Return can be used to exit function early when a condition is met.
Example
Useful methods for working with text: changing case, removing whitespace.