Skip to content

Nitpicking on the semantics of operators #3

@Veldhoen

Description

@Veldhoen

The lesson on operators contains:

  • Mathematical (or arithmetic) operators - perfectly fine
  • String concatenation, but no other operators applied to strings or other types (such as lists) - seems a bit accidental
  • Boolean operators - contain both comparison operators (which yield booleans) and true boolean (or logical) operators. This distinction could be clearer.
  • A bit on printing the values of variables. I would consider treating string-formatting in the string-lesson.

I would consider a separate section on operators and datatypes, showcasing Python errors on mixed-time-operations. And maybe also the special behaviour of applying arithmetic operators to non-numerical data, such as strings, booleans and lists.

Maybe I ought to create different issues, but they are somewhat related so a single discussion seems appropriate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions