0

I have a coding assignment to line up data in columns.

Current code:

print('i i**2 i**3 2**i',sep=' ')
for i in range(1,13):
    print(i, i**2,i**3,2**i,sep=' ')

I have written this code. Kindly someone help me to line up data in columns.

Chris Geatch
  • 113
  • 6
Fatima
  • 11
  • 3
  • state your code as code in your question, give us an input and output example, then we can work on it. – Aru May 27 '21 at 15:19
  • Hint: try looking at [`ljust`](https://docs.python.org/3/library/stdtypes.html#str.ljust) and [`rjust`](https://docs.python.org/3/library/stdtypes.html#str.rjust). – Mark Ransom May 28 '21 at 02:48

0 Answers0