Skip to content

Blog

Python While Loop Multiple Conditions Cover Image

Python While Loop with Multiple Conditions

Learn how to use Python while loops with multiple conditions, including and/or conditions, grouping conditions, and using the not operator.

Python Print All Object Properties Cover Image

Python: Print an Object’s Attributes

Learn how to print all of a Python object’s attributes using the dir() and vars() functions, and how to print pretty using the pprint module.

Python Split a List (In Half, in Chunks) Cover Image

Python: Split a List (In Half, in Chunks)

Learn how to split a Python list into n chunks, including how to split a list into different sized sublists or a different number of sublists.