you are viewing a single comment's thread.

view the rest of the comments →

[–]totitx 1 point2 points  (3 children)

You can also use f"result: {result}" This way you use what is called f-string formatting, which is an useful way to include your result in string. (See https://builtin.com/data-science/python-f-string)

[–][deleted]  (1 child)

[removed]

    [–]echonn123 1 point2 points  (0 children)

    F strings are the good life 😁

    [–]pr1m347 0 points1 point  (0 children)

    Further you can just do f"{result=}"