Question
1.) How do you make a separate copy of the contents of list p? p = [10, 15.5, 13.2, 20.1] values = list(p) values =
1.)
How do you make a separate copy of the contents of list p? p = [10, 15.5, 13.2, 20.1]
| values = list(p) | |
| values = p | |
| values[10] = p[10] | |
| all of the above |
2.)
When a function is called any data items sent to the function are called _____.
| arguments | |
| vegetables | |
| paratroupers | |
| fractions |
3.)
x = 5 / 2. In python 2.7 x is _____.
| 2 | |
| 1 | |
| 2.5 | |
| 1.5 |
4.)
To copy a list you can use this. list2 = list1[ : ]
True
False
5.)
Which of the following statements checks to see if the key 'Apple' is already in the dictionary named fruit?
| if "Apple" in fruit: | |
| if "Apple".in(fruit): | |
| if fruit holds "Apple": | |
| if fruit.contains("Apple"): |
6.)
"What happens here? sum([1,2,3,4, 5]) "
| 15 | |
| 121 | |
| 16 | |
| 14 |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started