Sail E0 Webinar
Question
What is the output of the code shown below?t=32.00[round((x-32)*5/9) for x in t]
Options:
A .  [0]
B .  0
C .  [0.00]
D .  Error
Answer: Option D


The value of t in the code shown above is equal to 32.00, which is a floating point value. 'Float' objects are not iterable. Hence the code results in an error.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers