Create a list that has four elements. Make a copy of the list and change one of the elements in the copy. Show that the same element in the original list did not change.

What will be an ideal response?


>>> num = [1, 2, 3, 4]
>>> num_copy = num[:]
>>> num_copy[0] = 9999
>>> num
[1, 2, 3, 4]
>>> num_copy
[9999, 2, 3, 4]

Computer Science & Information Technology

You might also like to view...

What tool on the Design tab is used to group toggle buttons, option buttons, or check boxes?

A. Subform B. Unbound Object Frame C. Rectangle D. Option Group

Computer Science & Information Technology

The ________ can be used to validate the data when the values entered into a specific field can be limited to a static list of options

A) text box B) query C) Combo Box D) field

Computer Science & Information Technology

Answer the following statement(s) true (T) or false (F)

1. Photoshop uses a resampling method that assigns a new color value to pixels by taking a sample of the surrounding ones. 2. Before you resample, it is important to check with your lab or service bureau, as some services automatically resample and resize at the time of printing. 3. Photoshop can insert detailed information into a photo if need be, even if it was not captured from the original image. 4. Photos will start to look crisper, with more detail, as they are enlarged. 5. The submissions you make to service bureaus and labs are highly printer independent.

Computer Science & Information Technology

A ____ program can take control of your browser. 

A. keylogger B. hijacker C. spyware D. sniffer

Computer Science & Information Technology