Convert a Python String to int
Darren Jones
08:58
Description
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:
What You'll Learn?
- Store integers using
str
andint
- Convert a Python string to an
int
- Convert a Python
int
to a string
More details
User Reviews
Rating
Darren Jones
Instructor's CoursesDarren is an avid Pythonista and creates video tutorials for Real Python. Having followed a varied career as a nuclear industry instrumentation engineer, a musician, recording engineer and teacher, he’s always been interested in computers, spending the last 20 years producing music with them and teaching music technology. He’s written books on the subject, and spends the remainder of his time improving his Python skills, with a view to bringing them into the studio and classroom for better understanding of both music and programming.

Real Python
View courses Real Python- language english
- Training sessions 5
- duration 08:58
- Release Date 2023/01/03