mariatta,
@mariatta@fosstodon.org avatar

You can do this with f-strings expressions and the debug mode:

>>> some_value = None
>>> f"{some_value is None=}"
'some_value is None=True'

>>> some_number = 100
>>> f"{some_number > 50=}"
'some_number > 50=True'

Learn more about f-strings and debugging with it by watching my short talk here: https://youtu.be/SNA2O0NQl_Q

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • kavyap
  • ngwrru68w68
  • tacticalgear
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • slotface
  • everett
  • vwfavf
  • rosin
  • anitta
  • Leos
  • khanakhh
  • GTA5RPClips
  • cisconetworking
  • InstantRegret
  • ethstaker
  • osvaldo12
  • tester
  • provamag3
  • modclub
  • cubers
  • normalnudes
  • megavids
  • JUstTest
  • All magazines