Sobes.tech
Intern — Middle

Type checking and literal constants in Python

livecode

Task condition

Describe whether the presented code fragment will be executed, which language constructs are involved, and whether there are any errors in variable declaration or type checking.


def check_type():
    num = 1_999_333
    result_tuple = (num,)
    print(isinstance(result_tuple, int))

if __name__ == "__main__":
    check_type()