Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)B
Posts
13
Comments
24
Joined
8 mo. ago

  • It's definitely not the same. Similarly for a class you can define the __add__ dunder method for a + b and separately the __iadd__ dunder method for a += b. The first creates a new object, the latter changes/mutates the existing object a. For immutable types it is the same though.

  • Nice one, see the "Solution" link for correct answer.

  • Yes I understand your point, but I'm trying to reach out so people are aware and can use it in Python education. I feel it can really help beginners understand tricky concepts with ease, bit it's hard to reach a bigger audience these days. Sorry for the repetition, I'll guess I should cut back a bit.

  • Python @programming.dev

    Data Structures Made Clear

  • Different languages make different choices. The disadvantage of Haskell is that if you want to change one value in a collection of a million values that it either makes a full copy or tries to optimize by sharing values behind the scene, both resulting in significant overhead. Most people already understand that pure functional programming languages don't deliver except in very specific circumstances: Haskell TIOBE rating 0.32%, https://www.tiobe.com/tiobe-index/

  • Incorrect sorry, check the "Solution" link for the correct answer.

  • Python @programming.dev

    Python Data Model: Copying

  • Python @programming.dev

    Multiway Tree visualized using memory_graph

  • Python @programming.dev

    Python Copies

  • Yes a you get for free to set the tone, the others are more interesting.

  • Python @programming.dev

    Python Mutability

  • Python @programming.dev

    Python bitwise operators

  • Nice one.

  • The whole point is to practice Python Data Model concepts, it's not a best-way-to-code example, so feel free to hate.

  • You are right, in landscape mode it's better, but still not ideal. It's a project I don't have time for now. On the other hand, did you run Python code, in an IDE where the debugger visualizes the whole program state, on your Phone before?

  • C is incorrect,sorry. See the "Solution" link for the correct answer.

  • Python @programming.dev

    Right Mental Model for Python Data

  • Python @programming.dev

    Invocation Tree Web Debugger

  • Python @programming.dev

    Understand the Python Data Model and Data Structures

  • Actually running the code? I got to the stage where only AI can help me understand anything ;-)

  • Thanks for your feedback, much appriciated.

    I agree that an exercise14.rst would be nice, but to save time I've let the code speak for itself now together with the visualizaion. I'll probably revisit and better document the exercises later.

    At the Explanation link I try to give a general explanation about Pyrhon mutability (and copy later on), I agree some readers might find it hard to relate that to a specific exercise, but I don't want to write a specific explanation for each exercise.

  • Thanks for reporting, should be fixed now.

  • The "Solution" link gives the solution to the exercise, the "Explanation" link explains the Python data model concepts behind the exercise. If some parts are hard to understand let me know.

  • Yes, that is a surprise to many, in other languages 'x+=y' and 'x=x+y' are the same.

  • Thanks, glad it helps you.

  • Python @programming.dev

    Python Mutability

  • Python @programming.dev

    Memory Graph Web Debugger