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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 00:10, witerose701
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, opgbadwolf5
What provides an array of buttons for quick access to commonly used commands and tools
Answers: 1
image
Computers and Technology, 24.06.2019 20:00, impura12713
Avirus enters a computer or network as code embedded in other software directly from another computer
Answers: 1
image
Computers and Technology, 25.06.2019 00:00, ddatsman1730
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
You know the right answer?
A) Create a new list called numbers of 5 different integers b) Create a reference list called num...

Questions in other subjects: