Python
Table Of Contents
If I try to write pseudocode,
I accidently write python
~ source
Learning Resources
YouTube Channels
BOOKS
- Python One Liners
- Fluent Python
- Python Tricks BY Dan Bader
Python Tricks
Return to Programming
Notes mentioning this note
Python callable()
Summary
returns boolean by checking if an object can be called
Syntax
callable(myObj)
example
callable(abs) for [[py.func.abs
abs()]] function
Python divmod()
Summary takes to numbers and returns tuple of quotient and remainder If x and y are integers, the return value...
Python filter()
Summary Apply a given func filter over a sequence Syntax filter(myFunc, mySequence) Parameters function that which evaluates to Boolean sequence...
Python sorted()
Summary returns a sorted list of specified iterable object Syntax sorted(iterable, ?key=None, ?reverse=False) parameters iterable sequence strings lists tuples collections...
Pythonic Way
Starting Counter with True instead of Zero
Number of Steps to Reduce a Number to Zero - LeetCode
Python Strings
Text Processing and [[UNICODE]] To decode bytes into graphemes we need to know the original encoding In Unicode grapheme =/=...
Python Tuples
Tuples Comparison Two tuples can be compared by comparing their elements starting from first. If there is a tie (elements...