#take user input 
      String = input("Enter the string :") 
      #Use join function 
      String = "".join(String.split()) 
      #print String 
      print("After removing spaces string is :",String)
      
      Python language logo

      Program to Remove Spaces from a String

      0

      0

      avatar
      drzyadav

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.