Challenge #15 - String Split and Join

 def split_and_join(line):

    # write your code here

    return ('-'.join(line.split()))


if __name__ == '__main__':

    line = input()

    result = split_and_join(line)

    print(result)

Comments

Popular posts from this blog

Challenge - #48 - Incorrect Regex

Challenge - #43 - Time Delta

Challenge - #52 - Set .discard(), .remove(), & .pop()