Name:______________________________ Alpha:________________________________Print this page and give the answers.
hello.py.
# hello.py
def func():
print("hello world IT430")
def func2():
print("Go Navy!")
Fill out the blank on the right to ensure correctness.
|
|
Possible types are: str, int, bytes, float
|
|
def f(a, b, c):
a = 3; b[0] = "t"; c['k'] = "hello"
x = 1
y = [1]
z = {'k':0}
f(x,y,z)
print(x, y, z)
Output: Why:
|
|
|
>>> A = [[]]*3
>>> A
__________________________
>>> A[0].append(1)
>>> A
__________________________
>>> B = [[] for i in range(3)]
__________________________
>>> B[0].append(1)
>>> B
__________________________