The oct() function takes an integer number and returns its octal value.
[mai mult...]Python iter() method
Python iter() method returns the iterator object, it is used to convert an iterable to the iterator.
[mai mult...]“all” in Python
“all” returns true if all of the items are True or if the iterable is empty. It returns False if any of the items is false.
[mai mult...]“any” in Python
“any” returns true if any of the items is True. It returns False if empty or all are false.
[mai mult...]*args in Python
The special syntax *args in function definitions in python is used to pass a non-key worded, variable-length argument list to a function.
The syntax is to use the symbol * to take in a variable number of arguments; by convention, it is used with the word args.
[mai mult...]Python “sep” parameter in print()
The separator between the arguments to print() function in Python is space by default.
The ‘sep’ parameter is used to modified the separator between the arguments and can be made to any character.
[mai mult...]Python end parameter in print()
By default python’s print() function ends with a newline.
Python’s print() function comes with a parameter called ‘end’.
You can end a print statement with any character/string using this parameter.
[mai mult...]How to convert a list to string in Python
How to split a string into a list using Python
Split a string into a list where each word is a list item
[mai mult...]How to reverse a string in Python
This is how you can reverse a string in Python
[mai mult...]