Comment on page

Python

Dictionary

  • Check key exists in dictionary dict: if key in dict:
  • How to iterate: a good tutorial.

String

  • Trimming:
s = s.strip()
s = s.lstrip()
s = s.rstrip()
  • Replace:
s = s.replace('\t', ' ')

Debug