Posts by Pedro Gama • 21 points
1 post
-
1
votes3
answers155
viewsQ: How do I remove the last "," that appears in the print?
How do I remove the last , that appears in the print? x = int(input()) z = range(x) for i in z: n = 2**i print(n, end=", ") When I run the show he returns it to me: 1, 2, 4, 8, 16,…