Skip to content

lancerobinsonDOTcom

Memory Dump

Categories

  • cisco
  • grep
  • hp
  • Linux
  • logrotate
  • Maps
  • perl
  • php
  • pscp
  • python
  • Sports
  • Uncategorized

Recent Posts

  • Learning Python Part 1
  • HP A5500 Bridge-Aggregation LACP Configuration
  • Python Notes
  • Display IP Address of users browser
  • Best Sports Trip Weekends 2015

Category: Uncategorized

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)

 

Posted on 2017-12-12Categories UncategorizedLeave a comment on Python Notes
Proudly powered by WordPress