This has been in Python since version 3.8 but I just learned about it today. It's probably most useful for debugging. If you end the expression in curly braces with an equals sign, the result will display <expression>=<value> -
>>>some_list = ['a','b','c'] >>>print(f'{some_list=}') some_list=['a', 'b', 'c'] -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/cf704c8e-076a-4b56-a382-2d18b2282eb2n%40googlegroups.com.