Printing customized lists [closed]

asked 2014-07-13 12:11:08 -0500

Kh@n gravatar image

updated 2014-07-13 12:17:10 -0500

I have 4 values and I want to print them in the following format using a function similar to "utils.print_list" . My numbers are in the form of integers. Any idea on how to do that. I am new to python and openstack.


| Number_1 | Number_2 | Number_3 |


|           |                  |


I want to insert my numbers into the empty spaces and also I would prefer a column form, instead of the row form shown i.e. id, name, status etc should be in a column with their corresponding value(s) to their right!

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by SGPJ
close date 2014-07-13 13:19:48.611806


You need to check python lib for this.

SGPJ gravatar imageSGPJ ( 2014-07-13 13:00:06 -0500 )edit

A link would be handy

Kh@n gravatar imageKh@n ( 2014-07-13 13:14:37 -0500 )edit

use awk and search in google.

SGPJ gravatar imageSGPJ ( 2014-07-13 13:22:25 -0500 )edit