subject

A) Create a new list called numbers of 5 different integers b) Create a reference list called num and refer to the numbers list created above. Print the num list
c) Change the value of any element in the numbers list
d) Print the contents of the num list with an appropriate message
e) Create an actual copy of the number list, naming it test1 ,using the slice concept. Change the value of any element in the test1 list
f) Print the contents of the number and test1 list with an appropriate message.
g) Create another actual copy of the number list, and name it test2, but this time only copy the first 3 elements.
h) Print the contents of the number, test1 and test2 list with an appropriate message.
i) Demonstrate the use of the ‘in’ and ‘not in’ operators to display true or false if the element is available or not in the number list.
j) Save the file as PC15.py and upload the file as directed by your teacher

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 12:30
Antifreeze is not considered a hazardous waste by the epa unless it is used or otherwise becomes contaminated. true or false?
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. sean is a computer programmer. he has programmed an application for toddlers that plays nursery rhymes. however, a logic error has occurred in the program. which problem is a likely consequence of the error? a. the program crashes every time the user wants to play the nursery rhymes. b. the program crosses its buffer boundaries and overwrites an adjacent program. c. the program plays a different nursery rhyme than the one the user intended to play. d. the program shows different structures in its programming language code. e. the program introduces new viruses every time the user plays a nursery rhyme.
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
question
Computers and Technology, 24.06.2019 05:30
If you combine two cells into one, what action are you performing? a.  adding a new row or column      b.  splitting the cells      c.  removing a new row or column      d.  merging the cells
Answers: 2
You know the right answer?
A) Create a new list called numbers of 5 different integers b) Create a reference list called num...
Questions
Questions on the website: 13722361