this is a happy string - slice happy form it in python

main.py
happy_string = "happy"
sliced_happy = happy_string[1:-1]
print(sliced_happy)    # Output: app
94 chars
4 lines

related categories

gistlibby LogSnag