Sep-07-2019, 08:30 PM
I'm trying to print things out in a line but obviously missing something.
For the code
For the code
a = 5 print(f'{a} ['); for x in range(1, 11) : print(f'{x}, ') print(']')it prints
5 [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ]How do I get it to print like this
5 [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]If this is already answered somewhere let me know. TIA