Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Reinforce that certain types in Python such as lists are mutable while others (e.g. strings, tuples) are not. Students have difficulty tracing code that uses mutable types because they often forget this.

Share Reinforce that certain types in Python such as lists are mutable while others (e.g. strings, tuples) are not. Students have difficulty tracing code that uses mutable types because they often forget this. with FacebookShare Reinforce that certain types in Python such as lists are mutable while others (e.g. strings, tuples) are not. Students have difficulty tracing code that uses mutable types because they often forget this. with Twitter
  • It is important for students to realize that mutable types may have immutable methods. For example, the index() and count() methods are immutable list methods.

The opinions expressed are those of the Suzanne Matthews and not necessarily the position of the Army or DoD.

More about this tip

Tags

  • Python
  • Data Structures
  • Development Methods
External Source

Interview with Suzanne Matthews

Other Tips By
Other Tips By Suzanne Matthews

Similar tips

Teach ArrayLists for the AP CS A exam by having students uncover interesting information from your past students’ grades.
Use constructive and well-formed examples, like Quicksort, to teach recursion so that students have a strong model for building their own solutions.
Rotate students into different pairs during a single class period so they learn to explain and read code quickly.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy