Make cryptic strings formatting readable I run into this example some days ago while reading someone’s else code (variable names were modified to some… or var…): somejob = “{}{}{}{}{}{}{}{}”.format( rundir, “https://dev.to/”, fileroot, “_”, someobj.somemethod(run[“run_dir”]), “_”, str(some_var), “w” ) Enter fullscreen mode Exit fullscreen mode What is wrong with this example? First, can you actually understand…

Read More