Jan-23-2020, 01:17 AM
Hello -
New to Python and have a question about formatting a list of numbers.
My output is coming out like this:
[(20, 40), (20, 41), (20, 42), (20, 43), (20, 44), (21, 40), (21, 41), (21, 42), (21, 43), (21, 44), (22, 40), (22, 41), (22, 42), (22, 43), (22, 44), (23, 40), (23, 41), (23, 42), (23, 43), (23, 44), (24, 40), (24, 41), (24, 42), (24, 43), (24, 44)]
You'll note the space after each comma. My question is, how do I format the list to remove the spaces? I want the output to look like this: [(20,40),(20,41),(20,42) ..so on and so forth.
Appreciate the help!
New to Python and have a question about formatting a list of numbers.
My output is coming out like this:
[(20, 40), (20, 41), (20, 42), (20, 43), (20, 44), (21, 40), (21, 41), (21, 42), (21, 43), (21, 44), (22, 40), (22, 41), (22, 42), (22, 43), (22, 44), (23, 40), (23, 41), (23, 42), (23, 43), (23, 44), (24, 40), (24, 41), (24, 42), (24, 43), (24, 44)]
You'll note the space after each comma. My question is, how do I format the list to remove the spaces? I want the output to look like this: [(20,40),(20,41),(20,42) ..so on and so forth.
Appreciate the help!