Ask Your Question

Printing lists [closed]

asked 2014-07-13 13:09:22 -0500

Kh@n gravatar image

updated 2014-07-13 13:10:03 -0500

I want to print a 2 column list such as

Column1 Column2

Entry1 int1

Entry2 int2

Entry3 int3

Entry1, 2 and 3 are strings and int1,2 and 3 are integers.

I need something similar to what happens when you enter a command in the openstack CLI such as nova list

edit retag flag offensive reopen merge delete

Closed for the following reason not a real question by SGPJ
close date 2014-07-14 05:51:56.003045


please update your tittle and give more details of what Entry1, 2 and 3 are?

SGPJ gravatar imageSGPJ ( 2014-07-13 13:21:40 -0500 )edit

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.


| 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!

Kh@n gravatar imageKh@n ( 2014-07-13 22:35:15 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-07-14 05:51:19 -0500

SGPJ gravatar image

You can browse for python lib and this is not openstack issue.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-07-13 13:09:22 -0500

Seen: 100 times

Last updated: Jul 14 '14