How To/python/

#!python
 
"""
string.reverse()
 
There is no such method in python. Use array reversing instead:
"""
 
text = "this_is_my_not_so_long_string"
print text[::-1]
#gnirts_gnol_os_ton_ym_si_siht