Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str1 = “Some words”
- new_str = “”
- for char in str1:
- if char != “ “:
- new_str += char
- print(new_str)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement