Python Forum
For loop syntax and math on len()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
For loop syntax and math on len()
#2
The problem is that you are using a proportional font. The width of "m" is wider than the width of '.'. If you switch to a monospace font (Courier, for example) then it will work. Otherwise very hard to get the dots to line up with the characters
Reply


Messages In This Thread
For loop syntax and math on len() - by KEYS - Nov-02-2020, 08:46 PM
RE: For loop syntax and math on len() - by jefsummers - Nov-03-2020, 12:31 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  math.log versus math.log10 stevendaprano 10 4,749 May-23-2022, 08:59 PM
Last Post: jefsummers
  Why getting ValueError : Math domain error in trig. function, math.asin() ? jahuja73 3 5,397 Feb-24-2021, 05:09 PM
Last Post: bowlofred
  Error on nested loop : Invalid syntax dvazquezgu 3 4,451 Nov-25-2020, 10:04 AM
Last Post: palladium
  "SyntaxError: invalid syntax" running code in Doing Math With Python b saucerdesigner 2 3,570 Nov-03-2020, 04:23 PM
Last Post: saucerdesigner
  pass after a loop is a syntax error??? Skaperen 5 7,225 Jan-16-2017, 03:01 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020