Repeat With Dash

Python Easy 2 views
Back to Questions

Problem Description

Word w and integer n are provided. Output w repeated n times, joined with '-' (dash). If n is 0 output empty.

Input Format

One line: w n.

Output Format

One line string.

Sample Test Case

Input:
hi 4
Output:
hi-hi-hi-hi

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next