Python Notes

a = whatever
a[1] = h
a[-1] = r

b = whatever
a=b -> True

RAW
a = r’whatever\new’

WHITESPACE
a = ‘       whatever     ‘
a.strip()

SPLIT
a = 127.0.0.1
octets = a.split(‘.’)

JOIN
“.”.join(octets)

 

Leave a Reply

Your email address will not be published. Required fields are marked *