Question: Write a Python program that asks a user to input a string. Then clear all the whitespaces present in that string and output it back
Write a Python program that asks a user to input a string. Then clear all the whitespaces present in that string and output it back to the user.
Example scenarios:
Program Prompt: Enter your string:
User response: h e ll o
Program prints: 'hello!
Program Prompt: Enter your string:
User response: 'How Are Y OU Doing
Program prints: 'HowAreYOUDoing?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
