Skip to content

Improve common mistake : use the comma , instead of . for decimal point notation #8

Description

@donnerc

One common mistake for the novices, at least in french speaking part of switzerland, is to use the comma instead of the . for floating point literals. This is because we say "nombre à virgule" to denote numbers with decimal positions. This generates errors really difficult to decrypt for the novices

from gturtle import *
makeTurtle()

size = 10
for _ in range(10):
    fd(size)
    rt(360 / 6)

    size *= 1,2

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions