May-11-2022, 05:34 PM
(May-09-2022, 06:33 PM)codingCat Wrote:(May-09-2022, 06:04 PM)menator01 Wrote: If you remove comments and spacing, got it to 31 lines.
hideturtle(), speed('fastest') penup(), goto(-200, 10*30/2), pendown(), goto(-200, 0-270) penup(), goto(200, 10*30/2), pendown(), goto(200, 0-270)
There is another technique that is new to me... can you explain the comma separator between the commands? Does python let you separate commands with a comma the way MS BASIC did with the colon, or is there a special case I am missing?
Hello,
These are tuples:
penup(), goto(-200, 10*30/2), pendown(), goto(-200, 0-270) == (penup(), goto(-200, 10*30/2), pendown(), goto(-200, 0-270))
I speak Python but I don't speak English (I just read it a little). If I express myself badly, please blame the translator^^.