Skip to content

Lesson Contribution - Swapping variables  #883

Closed
@klbarnes20

Description

@klbarnes20

I'm a member of The Carpentries staff and I'm submitting this issue on behalf of another member of the community. In most cases, I won't be able to follow up or provide more details other than what I'm providing below.


  1. python-novice-inflammation -

Episode 8 - *https://swcarpentry.github.io/python-novice-inflammation/08-func/index.html
https://swcarpentry.github.io/python-novice-inflammation/08-func/index.html;

  • *Creating functions introduces swapping variables under exercise "The
    Old Switcheroo". I would like to suggest mentioning that there is an
    elegant way of swapping variables in python.
    b, a = a, b

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