What is the output of the following code?
def runner (brand, model=”", year=2021,convertible=False):
return (brand, str (year), str (convertible))
print (runner ("Fermi") [2] [21])
a. False
b. 1
c. ('Fermi', '2021', 'False’)
d. code raises an unhandled exception
What is the output of the following code? def runner (brand, model=”", year=2021, convertible=False): return (brand, str
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am