I would like to state that I am new to programming and to Python. I did try doing research before posting this question but my lack of knowledge of even basics did not help yielding any results, thus requiring me to ask here.
I have two strings which are like:
str_a = "100,101,105,304"
str_b = "400,500,101"
I need to combine these strings into one so I use:
str_c = str_a + "," + str_b
And my issue starts here. In this new string, where there are elements (numbers) separated by a comma, I want to have each item listed only once. The order of numbers do not matter but if it was ascending, it would be pretty amazing.
What can I do to combine these two, having each number listed once, if possible ordered small to large?
Since these are strings, I am not even sure if I can iterate through?
Your help will be greatly appreciated, thanks in advance.