Hint: You can adjust the default video playback speed in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁This might be due to a temporary outage or because of a configuration issue with your browser. Please see our video player troubleshooting guide to resolve the issue.

Convert a Python String to int (Overview)

Give Feedback

Integers are whole numbers. In other words, they have no fractional component. Two data types you can use to store an integer in Python are int and str. These types offer flexibility for working with integers in different circumstances. In this course, you’ll learn how you can convert a Python string to an int. You’ll also learn how to convert an int to a string.

By the end of this course, you’ll understand how to:

  • Store integers using str and int
  • Convert a Python string to an int
  • Convert a Python int to a string

Download

Course Slides (.pdf)

266.0 KB

Comments & Discussion

Become a Member to join the conversation.