DEV Community

loading...

Discussion on: Daily Challenge #60 - Find the Missing Letter

Collapse
matrossuch profile image
Mat-R-Such

Python

def missingLetter(chain):
    for i in range(1,len(chain)):
        if chr(ord(chain[0])+i) != a[i]:
            print(chr(ord(chain[0])+i))
            break