I am running a script in a loop which creates some data as per some logic and then displays output in some combination but the output I am getting is in new line
Roll number : 187437366
Mobile Number : 07995036927
Grade : A
Roll number : 187437367
Mobile Number : 07995036937
Grade : B
However I want output in a tabular format something like below -
Roll Number | Mobile Number | Grade
187437366 | 07995036927 | A
187437466 | 07995037922 | A2
187437266 | 07995036921 | B
187437766 | 07995036120 | C
I am unable to find a concept on how to achieve this...can someone help me please?