Skip to content

Instantly share code, notes, and snippets.

View FrankApiyo's full-sized avatar
:shipit:
Crafting clean code, one commit at a time.

Frankline Apiyo FrankApiyo

:shipit:
Crafting clean code, one commit at a time.
View GitHub Profile
@FrankApiyo
FrankApiyo / simultaneousAsignment.jpg
Last active June 19, 2021 13:45
[Python]Simultaneous Assignment

When using simultaneous assignment, all the expressions on the RHS are evaluated before any assigment is done on the LHS.

Simultaneous assignment can greatly simplify the presentation of code.

fibonacci generator (no simultaneous assigment)

def fibonacci():
  a = 0
 b = 1