Join Words with Dash

Python Easy 2 views
Back to Questions

Problem Description

A sentence line is provided with words separated by spaces. Join words using '-' and output.

Input Format

One line sentence.

Output Format

One line joined.

Sample Test Case

Input:
hi hello bye
Output:
hi-hello-bye

Constraints

Length

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next