Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with print lists
#1
>>> pprint(response.choices)
Output:
[Choice(finish_reason='length', index=0, message=ChatCompletionMessage(content='The time complexity of the code is O(n * k), where n is the value of parameter `n` and k is the value of parameter `k`. This is because there are two nested loops, one iterating `n` times and the other iterating `k` times. The accum variable is incremented `n *', role='assistant', function_call=None, tool_calls=None))]
i try print and pprint and response is as above ( other lists also the same)
How can i print this in readable format?
Reply


Messages In This Thread
problem with print lists - by MarekGwozdz - Dec-14-2023, 03:04 PM
RE: problem with print lists - by menator01 - Dec-14-2023, 04:27 PM
RE: problem with print lists - by deanhystad - Dec-14-2023, 04:32 PM
RE: problem with print lists - by buran - Dec-15-2023, 08:57 AM
RE: problem with print lists - by Pedroski55 - Dec-15-2023, 09:13 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with print command in super() akbarza 5 671 Feb-01-2024, 12:25 PM
Last Post: deanhystad
  problem with spliting line in print akbarza 3 435 Jan-23-2024, 04:11 PM
Last Post: deanhystad
  Problem with print variable in print.cell (fpdf) muconi 0 692 Dec-25-2022, 02:24 PM
Last Post: muconi
Question How to print multiple elements from multiple lists in a FOR loop? Gilush 6 3,008 Dec-02-2020, 07:50 AM
Last Post: Gilush
  Split dict of lists into smaller dicts of lists. pcs3rd 3 2,455 Sep-19-2020, 09:12 AM
Last Post: ibreeden
  C to Python code conversion print problem anakk1n 1 2,215 May-22-2020, 04:15 PM
Last Post: deanhystad
  Highscore problem, need to print top 5 Camiosobro123 5 4,961 Jan-29-2020, 03:31 PM
Last Post: ThiefOfTime
  sort lists of lists with multiple criteria: similar values need to be treated equal stillsen 2 3,327 Mar-20-2019, 08:01 PM
Last Post: stillsen
  Newbie lists problem LedDiode 5 3,718 Dec-16-2018, 08:33 PM
Last Post: LedDiode
  Problem with Lists in Python DEAD_BOT 2 3,111 Aug-26-2018, 06:09 AM
Last Post: DEAD_BOT

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020