Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.advocacy Subject: Re: Tabs As Syntax Date: 22 Mar 2024 03:13:46 GMT Lines: 12 Message-ID: References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net W6NOIbQxR1CoJN3AaXhasAP2x4cz73RKTyC4TRmAzdoiDuL88z Cancel-Lock: sha1:BI699PlRnsDeMhXOP3MI/Hs19TI= sha256:1jDA4ahWOp1ROFfWnQ6hk9tHVi/i94clCk3ROXqKGRw= User-Agent: Pan/0.149 (Bellevue; 4c157ba) Bytes: 1293 On Thu, 21 Mar 2024 09:22:06 -0400, DFS wrote: > for i in range(2,11): print("%d made %d look like a foo^2" % (i*i,i)) Embrace f strings. Unless you're running an obsolete version of course. Some of the improvements leave me with a yawn but I use $"The quick red {animal} jumped over the brain dead Windows {user}" so I really liked that addition. Yeah, the % is sort of like C but half the time I screw up the tuple. format was more work too.