Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (50.2k points)
Can anyone tell me how to convert the string to int in Python?

1 Answer

0 votes
by (108k points)

If you want to convert the string data type of a variable into an integer type in Python, there is a built-in function, i.e., int(). Using this function, you can convert the string data type into an integer data type.

For instance: 

If you are looking for an online course to learn Python, check out this Python Certification program by Intellipaat.

Related questions

0 votes
1 answer
asked Jul 13, 2020 in Python by ashely (50.2k points)
0 votes
1 answer

Browse Categories

...