DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
chukkyiii profile image
Jesse Godwin • Edited

Python

def string_peeler(string):
    stringarr = []
    newstring = ''

    for x in string:
        stringarr.append(x)

    del(stringarr[0])
    del(stringarr[-1])

    for em in stringarr:
        newstring += em
    print(newstring)

string_peeler('Missing two letters')