Which of the following results in an error ?
int() can't convert non-string with explicit base.We need to provide the first argument to int() as string if base is passed to it.Correct syntax:
int()
int('101010', 2) int(101010) # base value not provided . So no error
Comment here: