Python - Variables and Dynamic Typing
Find the error in this code:
value = 5
if type(value) = int:
print("Integer")value = 5
if type(value) = int:
print("Integer")= which is assignment, not comparison.== in the if condition.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions