About 1,070 results
Open links in new tab
  1. Topics for Today variables and objects Changing/creating bindings vs. changing/modifying objects Mutability vs. immutability Review of types

  2. Anderson et al., 2021 High mutability The amount of respect and admiration people have can be changed if they try, so people in the work group can move up and down the status hierarchy if they …

  3. Immutability vs Mutability An immutable value is unchanging once created. Immutable types (that we've covered): int, float, string, tuple a_tuple = (1, 2) a_tuple[0] = 3 # AN ERROR a_string = "Hi y'all" …

  4. Mutability Non-final variables are mutable – they can be reassigned final variables cannot be reassigned, but they may point to objects whose fields can change value

  5. Why might a sequence of mutable objects require a different approach? Mutability & Functions

  6. Option 1: Make a new variable representing the index, initialized to 0 before the loop and incremented by 1 in the loop. Note, no return! # prints [2,3,4] # prints [4,9,16] Functions that mutate the input …

  7. In Table 2, we show how the proposed dimensions of mutability can be used to help interpret and analyse online group behaviour. This allows the content involved in an individual social media post to …