- (10%)
Determine whether the following code is correct or not. If it is
correct, predict its output. If it is incorrect, point out the
mistake(s).
# Output Formatting
print('A', end='')
print('A', end='')
print('A','A','A',sep="'")
- (10%)
Determine whether the following code is correct or not. If it is
correct, predict its output. If it is incorrect, point out the
mistake(s).
# Simultaneous Assignment
x, y = 9, 22
y = x
x = y
print(x, y)
- (10%)
Determine whether the following code is correct or not. If it is
correct, predict its output. If it is incorrect, point out the
mistake(s).
# Definite Loop
for i in range(5):
for j in range(5):
print(i, end='')
print()