CMPT 383 Study Guide - Final Guide: Ironpython, Cpython, Type System

124 views3 pages

Document Summary

Consider the attached python listing (on the last page). You are encouraged to run the examples to understand how they work: function example1 executes function dosomething() on every element in list container. Change the function to execute dosomething() on every element in container, assuming container is a python set instead of a list. What is the name for this property: consider function example2. Which values, if any, will persist after the function returns: consider the sequence of code example 3. Why: consider the sequence of code example 4. Would you want: what are the advantages of the internal representation for a list over the internal, consider the sequence of code example 5. Python principles: describe the difference between mutable and immutable types in python. Give an expression where only an immutable type can appear. Be able to do the kinds of questions asked on the midterm.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents

Related Questions