Python Tutorials

Python String to Int() and Int to String Tutorial: Type Conversion in Python

Comments (2)
  1. mehdi says:

    How can I convert a variable with more than one component of strings to int?
    for example I have a vector ( [“3″,”5″,”7”]). How can I convert in to [3,5,7]?

    1. James Gallagher says:

      Hello there! I have added a “Python Convert List of Strings to List of Integers” section to the tutorial which answers your question. Thank you for your comment.

Leave a Reply

Your email address will not be published. Required fields are marked *

Tell us about you and we will match you with top rated bootcamps with flexible payment options, income sharing (ISAs), or money-back guarantees.

Career Karma

Find the right bootcamp for you

By continuing you indicate that you have read and agree to
Career Karma Terms of Service and Privacy Policy

X
A person sitting on a dark green chair with a laptop on their knee