Skip to content

My Humble Abode

A website about linux, kvm,gluster, ceph, kubernetes and programming

  • I am..
    • About Me..
    • Ref -> .
    • Tech Life Bio [On Request]
  • Engineering.
    • Data Structures
      • K-Dimensional Tree(C)
      • Leftist Tree (C)
      • YACC
      • LEX.
      • Red Black Tree(C)
  • Hum’s Space…
    • Docs..[Private]
    • Pics…
    • Favorites..
      • My Kids
      • Videos..
  • Forums
    • C-programming..
    • Go Programming
    • Git (distributed revision control and source code management system) Tips /Tricks..
    • Linux Command Tips and Tricks.
    • Linux Questions & Answers..
      • Information security
      • Logical Volume Manager (LVM) ..
      • Kernel/Performance
      • General/misc …
      • Storage ..
      • Filesystem ..
      • Networking..
      • Virtualization…
      • Cloud computing..
    • Python Programming
  • മലയാളം ബ്ലോഗ്‌
  • Tech Videos
    • Gluster Container Videos
  • Connect Me

Search Your Topic

Categories

My Humble Abode
  • I am..
    • About Me..
    • Ref -> .
    • Tech Life Bio [On Request]
  • Engineering.
    • Data Structures
      • K-Dimensional Tree(C)
      • Leftist Tree (C)
      • YACC
      • LEX.
      • Red Black Tree(C)
  • Hum’s Space…
    • Docs..[Private]
    • Pics…
    • Favorites..
      • My Kids
      • Videos..
  • Forums
    • C-programming..
    • Go Programming
    • Git (distributed revision control and source code management system) Tips /Tricks..
    • Linux Command Tips and Tricks.
    • Linux Questions & Answers..
      • Information security
      • Logical Volume Manager (LVM) ..
      • Kernel/Performance
      • General/misc …
      • Storage ..
      • Filesystem ..
      • Networking..
      • Virtualization…
      • Cloud computing..
    • Python Programming
  • മലയാളം ബ്ലോഗ്‌
  • Tech Videos
    • Gluster Container Videos
  • Connect Me

Reply To: Data structures in python continued.. (strings) .. [P-2]

Home › Forums › Python Programming › Data structures in python continued.. (strings) .. [P-2] › Reply To: Data structures in python continued.. (strings) .. [P-2]

January 13, 2014 at 6:46 am #2107
Humble
Keymaster

Some more slicing examples:

>>> str= "humble"
>>> str[::-2]
'ebu'
>>> str[::2]
'hml'
>>> str[1:2]
'u'
>>> str[1::]
'umble'
>>> str[::3]
'hb'
>>> str[:3]
'hum'
>>> 

Recent Comments

  • Wenyuan on Connect Me
  • Wenyuan on Connect Me
  • Humble on Ovirt : How to shutdown/stop or start virtual machines (VMs) in ovirt DC automatically using python/ovirt- sdk ? [Part 1]
  • Humble on How to remove/delete virbr0 ?
  • Humble on How to remove/delete virbr0 ?
© 2025 GeneratePress