Beginner Python
Q25 / 101

Which built-in function converts a string to an integer?

Correct! Well done.

Incorrect.

The correct answer is C) int()

C

Correct Answer

int()

Explanation

int("42") converts the string "42" to the integer 42. int(3.9) truncates to 3.

Progress
25/101