Page 1 of 1

. What is the expected result of the following code? rates = (1.2, 1.4, 1.0) new = rates [3:] for rate in rates [-1:): n

Posted: Sun Jul 10, 2022 11:27 am
by answerhappygod
. What is the expected result of the following code?
rates = (1.2, 1.4, 1.0)
new = rates [3:]
for rate in rates [-1:):
new += (rate, )
print (len (new))
a. Code will cause an unhandled exception
b. 1
c. 5
d. 2