2026/2027 COMPLETE QUESTIONS WITH
VERIFIED CORRECT ANSWERS ||
100% GUARANTEED PASS
<NEWEST VERSION>
University Of South Alabama
1. can you add spaces between terms in code with really changing the meaning
- ANSWER ✔ yes
2. how do u write pi - ANSWER ✔ math.pi
3. how do you write e - ANSWER ✔ math.e
4. how do u have access to a module's functionality (ex. math) - ANSWER ✔
import it
aka; import math
5. if you dont write print you will only see what when you run code -
ANSWER ✔ the last output in the block
6. how to print something - ANSWER ✔ print( )
7. how to write a variable - ANSWER ✔ x = 6
,8. can an _ start a variable - ANSWER ✔ yes _x is a valid variable
9. can some names not be variables - ANSWER ✔ yes, thinks like math and
other variables that have other meanings in python
10.how to find what type something is - ANSWER ✔ type ( )
11.what type is just: 1 - ANSWER ✔ intiger
int
12.what type is: 1.0 - ANSWER ✔ float
13.what type is 3 + 5.0 - ANSWER ✔ float
14.list_contents1 — try itWhich option is False?
5 in [2, 3, 4, 5]
5 in [2, 3, 4, 5][0:]
5 in [2, 3, 4, 5][1:]
1 in [2, 3, 4, 5][1:]
5 in [2, 3, 4, 5] + [1]
1 in [2, 3, 4, 5] + [1] - ANSWER ✔ 1 in [2, 3, 4, 5][1:]
15.list_contents2 — try itWhich option is True?
1 in 12
1 in [12, 121]
1 in ['1', '12']
1 in [1, 2, 1, 2, 1] - ANSWER ✔ 1 in [1, 2, 1, 2, 1]
,16.list_contents3 — try itWhich option is True?
'in' in ['outer', 'outy']
'in' in ['in']
'in' in ['inner']
'in' in ['inner', 'inny'] - ANSWER ✔ 'in' in ['in']
17.list_contents4 — try itWhat is the output of the code below?
'dinosaur' in ['dinosaur']
True
False - ANSWER ✔ true
18.list_contents5 — try itWhat is the output of the code below?
dino' in 'dinosaur'
False
True - ANSWER ✔ true
19.list_contents6 — try itWhat is the output of the code below?
'in' in ['dinosaur']
True
False - ANSWER ✔ false
20.list_contents7 — try itWhat is the output of the code below?
odds = [1, 3, 5, 7, 9] primes = [1, 3, 5, 7, 2] odds = odds[0:4] primes =
primes[0:4] primes == odds
True
False - ANSWER ✔ true
21.list_contents8 — try itWhat is the output of the code below?
odds = [1, 3, 5, 7, 9]
primes = [1, 2, 3, 5, 7]
, odds = odds[0:1] + [2] + odds[2:4] odds == primes
True
False - ANSWER ✔ false
22.listmerge1 — try it
Select the option that correctly characterizes the code below
w = [0, 2, 4, 6, 8, 10]
y = [0, 1, 4, 9, 16, 25]
z = []
for x in y:
if not x in w:
z.append( x )
z
The code returns all the items in both w and y
The code returns all the items in both x and y
The code returns all the items in both y and z
The code returns all the items in w but not in y
The code returns all the items in x but not in z
The code returns all the items in y but not in w
None of the above - ANSWER ✔ The code returns all the items in y but not
in w
23.listmerge2 — try it
Select the option that correctly characterizes the code below
alpha = ['a', 'b', 'c', 'd']
numer = ['1', '2', '3', '4']
for let in alpha:
for num in numer:
print( num + let )
The code prints 1a, 2b, 3d, 4d
The code prints a1, b2, c3, d4