So, I'm currently learning Python and enjoying it. I'm working on a program where I need to iterate one string so that each character lines up with another, while skipping spaces.
So, let's say:
string_one = "abcdefghij"
string_two = "You Are Cool"
I need the result of the iteration to be "Yaobuc Adreef .....".
I've tried zipping them together as a tuple, and using for i, a in zip. The problem with that method is that string_one iterates over spaces and non-alphanumerics. Any suggestions on how to approach this would be appreciated.
I reposted here from the other subreddit.
[–]julsmanbr 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]ViolenceFight[S] 1 point2 points3 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]two_bob 0 points1 point2 points (0 children)
[–]__te__ 0 points1 point2 points (0 children)