7. What would be the output produced by following code ? Why ?
a, b, c = 0 .1 d = 0.3 e=a+b+c=d f = a + b + c==d print(e) print(f) # Output TypeError: cannot unpack non-iterable float object Because a float is being provided where three values are needed. After that in line 3 value is being assigned to an expression which will raise SyntaxError
7. What would be the output produced by following code ? Why ? Read More »