LearnPy Hub
← Strings problems
Easy

Spaces to Underscores

Read a line and replace every space with an underscore.

Input

One line.

Output

One line.

Sample 1

Input
hello world
Output
hello_world

Sample 2

Input
a b c d
Output
a_b_c_d
solution.py
Output appears here
Spaces to Underscores · Python practice problem · LearnPy Hub