Skip to content

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

@donnerc

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

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