# Get right data output format using a For loop?

**URL:** <https://community.wolfram.com/t/get-right-data-output-format-using-a-for-loop/13303>\
**Category:** Questions\
**Created:** [November 13, 2018, 8:13am UTC](https://community.wolfram.com/t/get-right-data-output-format-using-a-for-loop/13303 "2018-11-13T08:13:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjoerddoggenaar](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sjoerddoggenaar](https://community.wolfram.com/u/sjoerddoggenaar)\
**Post date:** [November 13, 2018, 8:13am UTC](https://community.wolfram.com/t/get-right-data-output-format-using-a-for-loop/13303/1 "2018-11-13T08:13:36Z")

</div>

I have made a for loop, the output is the desired data but i dont know how to make lists of the columns. also the output is not reallt given in the output format “out[]” how do i solve this?

 ![notoutput.JPG](https://global.discourse-cdn.com/wolfram/original/3X/8/4/84d17ac3401b54c4642d9d0f7570bf80f5b9cd30.jpeg)

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [November 13, 2018, 11:24am UTC](https://community.wolfram.com/t/get-right-data-output-format-using-a-for-loop/13303/2 "2018-11-13T11:24:56Z")

</div>

Welcome to Wolfram Community! Please make sure you know the rules: [https://wolfr.am/READ-1ST](https://wolfr.am/READ-1ST)

The rules explain how to format your code properly. If you do not format code, it may become corrupted and useless to other members. Please **EDIT** your post and make sure code blocks start on a new paragraph and look framed and colored like this.

```
int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

```

 ![ScreenShot2017-04-28at9.43.33AM.png](https://global.discourse-cdn.com/wolfram/original/3X/f/3/f3367c082cbad32b79855f70628ea173f845653e.png)

---

<div class="post-metadata">

**Author:** ![gdelfino](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/gdelfino/32/41294_2.png) [@gdelfino](https://community.wolfram.com/u/gdelfino)\
**Post date:** [November 13, 2018, 4:34pm UTC](https://community.wolfram.com/t/get-right-data-output-format-using-a-for-loop/13303/3 "2018-11-13T16:34:52Z")

</div>

The are many issues with your code. Just some hints:

- Variable names cannot include underscores.
- Encapsulate local variables using `Module`
- Do not use `Print` except for debugging. The value of your last expression is the return value. Your current function in not returning anything.
