10. Are these values equal ? Why/why not ?
i) 20 and 20.0 # Yes (ii) 20 and int(20) # Yes (iii) str(20) and str(20.0) # No becuase str(20.0) is equal to ‘20.0’ (iv) ‘a’ and “a” # Yes
10. Are these values equal ? Why/why not ? Read More »
i) 20 and 20.0 # Yes (ii) 20 and int(20) # Yes (iii) str(20) and str(20.0) # No becuase str(20.0) is equal to ‘20.0’ (iv) ‘a’ and “a” # Yes
10. Are these values equal ? Why/why not ? Read More »
x, y = 4, 8 z = x/y*y print(z) Ans: x, y = 4, 8 z = x/y*y and 0 print(z)