I'm learning Python by myself and I was doing an experiment, where I want to create two columns of data (column A and column B). However, my experiment needs calculated data. My goal is to create a data frame myself (as you do in excel), but I want to incorporate the formulas I need to get the calculated values for my data.
Would it be easier to use the print()
and the escape characters required (\n
for line break, \t
for tab), to display a table on the screen such as the following?:
Hours (n) | Total number |
---|---|
0 | 200 |
5 | 6400 |
10 | 204800 |
15 | 6553600 |
For example: the formula I'm using to create this table is Total number=200x2^n