i = "HumanDev"
x = []
 
for word in i.split():
    x.append(word)
 
y = ''.join(x)
z = ''.join(c for c in y[::-1] if c not in 'ong')
 
print(z)


# i.split : 공백을 기준으로 나눔
# ''.join(x) : x에서 공백을 없애고 합쳐라
    # ex) x = [human, dev] -> humandev
# 문자열[시작 : 끝 : 변화값] : -1은 뒤에서부터

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: