. 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
. 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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am