THE CHALLENGEREMOVE_SPACES — Remove extra spaces.
Read a string that contains extra spaces. Squash every run of spaces into a single separator, replace it with an underscore (_), then print the result.
Input:
Travaux pratique pascal
Output:
Travaux_pratique_pascal
Challenge: split() with no argument swallows every extra space; join() glues the words back with _.
Checks (verified automatically before your code runs):
- At least 1 call to split().
- At least 1 call to join().
- No loops at all: no for, no while, no comprehensions.