{
    "id": 775,
    "meta": {
        "slug": "introduction-python-programming",
        "seo_title": "Introduction to Python Programming | Free textbook | OpenStax",
        "search_description": "Free, peer-reviewed Python programming textbook with an integrated code runner. Covers variables, functions, loops, data structures, and problem-solving. For CS, data science, business, and social science courses. Always free for students and instructors.",
        "type": "books.Book",
        "detail_url": "https://openstax.org/apps/cms/api/v2/pages/775/",
        "html_url": "https://openstax.org/details/books/introduction-python-programming",
        "show_in_menus": false,
        "first_published_at": "2024-02-23T11:29:03.734000-06:00",
        "alias_of": null,
        "parent": {
            "id": 30,
            "meta": {
                "type": "books.BookIndex",
                "detail_url": "https://openstax.org/apps/cms/api/v2/pages/30/",
                "html_url": "https://openstax.org/subjects/"
            },
            "title": "Books"
        },
        "locale": "en"
    },
    "title": "Introduction to Python Programming",
    "created": "2024-02-27T11:02:01.807000-06:00",
    "updated": "2026-08-03T09:34:58.838166-05:00",
    "book_state": "live",
    "cnx_id": "8d08a72f-5463-4856-b05c-58b0d65f5e61",
    "book_uuid": "8d08a72f-5463-4856-b05c-58b0d65f5e61",
    "polish_site_link": null,
    "salesforce_abbreviation": "Introduction to Python Programming",
    "salesforce_name": "Introduction to Python Programming",
    "salesforce_book_id": "a0Z6f00000R27HxEAJ",
    "book_subjects": [
        {
            "id": 355,
            "meta": {
                "type": "books.BookSubjects"
            },
            "subject_name": "Computer Science",
            "subject_page_content": "Simple to use, simple to adopt. Our computer science textbooks are designed to meet the standard scope and sequence requirements of their respective courses – and are 100% free online. Complete with free resources for educators (like LMS course shells, lecture slides, instructor answer keys, and more), all OpenStax textbooks are fully customizable. Explore our texts below and adopt any and all parts useful to your course.",
            "subject_search_description": "Computer Science"
        }
    ],
    "book_categories": [
        {
            "id": 168,
            "meta": {
                "type": "books.BookCategories"
            },
            "subject_name": "Computer Science",
            "subject_category": "Python Programming"
        }
    ],
    "k12book_subjects": [
        {
            "id": 78,
            "meta": {
                "type": "books.K12BookSubjects"
            },
            "subject_name": "Information Technology",
            "subject_category": "Career and Technical Education"
        }
    ],
    "is_ap": false,
    "remediation_status": "fixed",
    "description": "<p data-block-key=\"uivul\"><i>Introduction to Python Programming</i> provides a comprehensive foundation in programming concepts and skills, and it is aligned to the scope of most introductory courses. A wide array of scenarios, contexts, and problems reflect programming applications in many disciplines and careers. The offering is suitable for a diverse learner audience, including those pursuing computer science, business, science, social science, statistics, data science, and related areas of study and employment.</p><p data-block-key=\"62u8v\"><i>Introduction to Python Programming</i> is an interactive offering that teaches basic programming concepts, problem-solving skills, and the Python language using hands-on activities. The resource includes a unique, integrated code runner through which students can immediately apply what they learn to check their understanding. Embedded videos, critical thinking exercises, and explorations of external programming tools and activities all contribute to a meaningful and supportive learning experience.</p>",
    "content_warning_text": null,
    "require_login_message_text": null,
    "cover_url": "https://assets.openstax.org/oscms-prodcms/media/documents/introduction_to_python_programming_web_card.svg",
    "cover_alt": null,
    "title_image_url": "https://assets.openstax.org/oscms-prodcms/media/documents/introduction_to_python_programming_title_card.svg",
    "title_image_alt": null,
    "cover_color": "blue",
    "book_cover_text_color": "yellow",
    "reverse_gradient": false,
    "book_student_resources": [
        {
            "id": 1410,
            "meta": {
                "type": "books.BookStudentResources"
            },
            "resource_heading": "Student Getting Started Guide",
            "resource_description": "<p data-block-key=\"ku2u8\">Congratulations! You've got a free textbook. Download this guide to learn how to use it.<br/></p>",
            "resource_unlocked": true,
            "resource_icon": "https://assets.openstax.org/oscms-prodcms/media/original_images/resource_icon_2.png",
            "link_external": "",
            "link_page": null,
            "link_document_url": "https://assets.openstax.org/oscms-prodcms/media/documents/student_getting_started_guide.pdf",
            "link_document_title": "OpenStax Student Getting Started Guide 2020",
            "link_text": "Download",
            "coming_soon_text": null,
            "updated": null,
            "remediation_status": "",
            "print_link": null,
            "display_on_k12": true,
            "resource_category": "getting started guide",
            "hidden": false
        },
        {
            "id": 1411,
            "meta": {
                "type": "books.BookStudentResources"
            },
            "resource_heading": "Reading and Notetaking Guide",
            "resource_description": "<p data-block-key=\"8gs86\">Adapted from OpenStax <i>College Success</i>, this guide discusses effective reading approaches, study tips, and notetaking strategies for students.</p>",
            "resource_unlocked": true,
            "resource_icon": "https://assets.openstax.org/oscms-prodcms/media/original_images/resource_icon_2.png",
            "link_external": "",
            "link_page": null,
            "link_document_url": "https://assets.openstax.org/oscms-prodcms/media/documents/OpenStax.Effective.Reading.and.Notetaking.Guide_E7WFZSP.pdf",
            "link_document_title": "Reading and Notetaking Guide",
            "link_text": "Download",
            "coming_soon_text": null,
            "updated": null,
            "remediation_status": "",
            "print_link": null,
            "display_on_k12": true,
            "resource_category": "study skills guide",
            "hidden": false
        }
    ],
    "book_faculty_resources": [
        {
            "id": 4032,
            "meta": {
                "type": "books.BookFacultyResources"
            },
            "resource_heading": "Instructor Getting Started Guide",
            "resource_description": "<p data-block-key=\"yoxee\">Download our helpful guide to all things OpenStax.<br/></p>",
            "resource_unlocked": true,
            "resource_icon": "https://assets.openstax.org/oscms-prodcms/media/original_images/resource_icon.jpg",
            "link_external": "",
            "link_page": null,
            "link_document_url": "https://assets.openstax.org/oscms-prodcms/media/documents/OpenStax.Instructor.Getting.Started.Guide.pdf",
            "link_document_title": "OpenStax Instructor Getting Started Guide 2023",
            "link_text": "Download",
            "coming_soon_text": null,
            "video_reference_number": null,
            "remediation_status": "",
            "updated": null,
            "featured": false,
            "k12": false,
            "display_on_k12": true,
            "print_link": null,
            "resource_category": "getting started guide",
            "hidden": false
        },
        {
            "id": 4033,
            "meta": {
                "type": "books.BookFacultyResources"
            },
            "resource_heading": "Diversity and Representation Development Guidelines",
            "resource_description": "<p data-block-key=\"fvo6u\">These guidelines support OpenStax efforts to ensure diverse representation in the development and improvement of our materials. These guidelines can be used to develop and improve all open educational resources.</p>",
            "resource_unlocked": true,
            "resource_icon": "https://assets.openstax.org/oscms-prodcms/media/original_images/resource_icon.jpg",
            "link_external": "",
            "link_page": null,
            "link_document_url": "https://assets.openstax.org/oscms-prodcms/media/documents/OpenStax_Diversity_Equity_Inclusion_Development_Guidelines_2022.pdf",
            "link_document_title": "OpenStax_Diversity_Equity_Inclusion_Development_Guidelines_2022",
            "link_text": "Download",
            "coming_soon_text": null,
            "video_reference_number": null,
            "remediation_status": "",
            "updated": null,
            "featured": false,
            "k12": false,
            "display_on_k12": true,
            "print_link": null,
            "resource_category": "dei guide",
            "hidden": false
        },
        {
            "id": 4034,
            "meta": {
                "type": "books.BookFacultyResources"
            },
            "resource_heading": "Instructor Solutions Manual",
            "resource_description": "<p data-block-key=\"v5k04\">The instructor solutions manual contains the instructor-facing answers to the problems and exercises within the textbook. Since many instructors use these questions in graded assignments, we ask that you not post these questions and the answers on any publicly available websites.<br/></p>",
            "resource_unlocked": false,
            "resource_icon": "https://assets.openstax.org/oscms-prodcms/media/original_images/resource_icon.jpg",
            "link_external": "",
            "link_page": null,
            "link_document_url": "https://assets.openstax.org/oscms-prodcms/media/documents/Introduction_to_Python_Programming_-_Instructor_Solutions_Manual.docx",
            "link_document_title": "Introduction to Python Programming - Instructor Solution Manual",
            "link_text": "Download",
            "coming_soon_text": null,
            "video_reference_number": null,
            "remediation_status": "fixed",
            "updated": null,
            "featured": false,
            "k12": false,
            "display_on_k12": true,
            "print_link": null,
            "resource_category": "answer guide",
            "hidden": false
        },
        {
            "id": 4035,
            "meta": {
                "type": "books.BookFacultyResources"
            },
            "resource_heading": "Document Files",
            "resource_description": "<p data-block-key=\"cjwlg\">OpenStax provides DOCX files for each section of this textbook so instructors can more easily adapt and modify the content for their courses. For more robust customization support, OpenStax Technology Partners such as Cognella Custom, ExpertTA, Great River Learning, Kendall Hunt, and LAD Custom Publishing offer content customization options. To learn more, visit our <a href=\"https://openstax.org/partners\">Technology Partners</a> page and use the “Type” menu to filter for “Content customization.” These DOCX files may not be updated as frequently as the textbooks on the <a href=\"https://openstax.org/\">OpenStax website</a>, which remains the best and most accessible way for students to access our books. Once a file is downloaded, it won't automatically receive future updates.</p>",
            "resource_unlocked": false,
            "resource_icon": "https://assets.openstax.org/oscms-prodcms/media/original_images/resource_icon.jpg",
            "link_external": "",
            "link_page": null,
            "link_document_url": "https://assets.openstax.org/oscms-prodcms/media/documents/Introduction_to_Python_Programming_-_Book_Customization_-_DOCX.zip",
            "link_document_title": "Introduction to Python Programming - Book Customization - DOCX",
            "link_text": "Download",
            "coming_soon_text": null,
            "video_reference_number": null,
            "remediation_status": "",
            "updated": null,
            "featured": false,
            "k12": false,
            "display_on_k12": true,
            "print_link": null,
            "resource_category": "course files",
            "hidden": false
        },
        {
            "id": 4036,
            "meta": {
                "type": "books.BookFacultyResources"
            },
            "resource_heading": "Course Cartridge",
            "resource_description": "<p data-block-key=\"omwhm\">This course cartridge will support integrating your OpenStax books and resources into common learning management systems. Download this course file and read the attached help article to import this resource into your LMS.</p><ul><li data-block-key=\"ds6s7\"><a href=\"https://help.openstax.org/s/article/Importing-Canvas-Cartridges\">Instructions for importing the Canvas Cartridge</a></li><li data-block-key=\"diqp0\"><a href=\"https://help.openstax.org/s/article/Downloading-the-Blackboard-Ultra-Course-Package\">Instructions for using the package with Blackboard Ultra</a></li><li data-block-key=\"4fufh\"><a href=\"https://help.openstax.org/s/article/Downloading-the-Blackboard-Learn-Course-Package\">Instructions for using the package with Blackboard Learn</a></li><li data-block-key=\"dbult\"><a href=\"https://help.openstax.org/s/article/How-to-import-the-D2L-Course-Cartridge\">Instructions for importing the D2L Cartridge</a></li></ul>",
            "resource_unlocked": false,
            "resource_icon": "https://assets.openstax.org/oscms-prodcms/media/original_images/resource_icon.jpg",
            "link_external": "",
            "link_page": null,
            "link_document_url": "https://assets.openstax.org/oscms-prodcms/media/documents/introduction-to-python-programming-export.imscc",
            "link_document_title": "openstax-introduction-to-python-programming-export",
            "link_text": "Download",
            "coming_soon_text": null,
            "video_reference_number": null,
            "remediation_status": "fixed",
            "updated": null,
            "featured": true,
            "k12": false,
            "display_on_k12": true,
            "print_link": null,
            "resource_category": "cartridge",
            "hidden": false
        },
        {
            "id": 4041,
            "meta": {
                "type": "books.BookFacultyResources"
            },
            "resource_heading": "Enhanced Lecture PowerPoint Slides with Videos",
            "resource_description": "<p data-block-key=\"zt4qa\">These lecture slides include selected graphics from the text, key concepts and definitions, examples, discussion questions, and selected YouTube videos.</p>",
            "resource_unlocked": false,
            "resource_icon": "https://assets.openstax.org/oscms-prodcms/media/original_images/resource_icon.jpg",
            "link_external": "",
            "link_page": null,
            "link_document_url": "https://assets.openstax.org/oscms-prodcms/media/documents/Introduction_to_Python_Programming_-_PPT_Slides.zip",
            "link_document_title": "Introduction to Python Programming - PPT Slides",
            "link_text": "Download",
            "coming_soon_text": null,
            "video_reference_number": null,
            "remediation_status": "fixed",
            "updated": null,
            "featured": false,
            "k12": false,
            "display_on_k12": false,
            "print_link": null,
            "resource_category": "instructional slides",
            "hidden": false
        }
    ],
    "publish_date": "2024-03-13",
    "authors": [
        {
            "type": "author",
            "value": {
                "name": "Udayan Das",
                "university": "Saint Mary's College of California",
                "country": "",
                "senior_author": true,
                "display_at_top": false
            },
            "id": "b113ed14-c48a-46a8-b5d5-5140666d1d93"
        },
        {
            "type": "author",
            "value": {
                "name": "Aubrey Lawson",
                "university": "Wiley",
                "country": "",
                "senior_author": true,
                "display_at_top": false
            },
            "id": "f3f74fba-123e-41a5-a96b-7810591c365e"
        },
        {
            "type": "author",
            "value": {
                "name": "Chris Mayfield",
                "university": "James Madison University",
                "country": "",
                "senior_author": true,
                "display_at_top": false
            },
            "id": "6a36fb4b-920c-4c45-8acc-2296c056f598"
        },
        {
            "type": "author",
            "value": {
                "name": "Narges Norouzi",
                "university": "UC Berkeley",
                "country": "",
                "senior_author": true,
                "display_at_top": false
            },
            "id": "c4acb4b9-127c-491a-a1ec-a87b82cb76fb"
        },
        {
            "type": "author",
            "value": {
                "name": "Yamuna Rajasekhar",
                "university": "Wiley",
                "country": "",
                "senior_author": false,
                "display_at_top": false
            },
            "id": "c4c33bdb-42ca-4a9c-a7ae-880092aec2e5"
        },
        {
            "type": "author",
            "value": {
                "name": "Reed Kanemaru",
                "university": "Wiley",
                "country": "",
                "senior_author": false,
                "display_at_top": false
            },
            "id": "41e91bc3-6f23-4c87-b096-5460a059e5ae"
        }
    ],
    "print_isbn_13": null,
    "print_softcover_isbn_13": null,
    "digital_isbn_13": "978-1-961584-45-7",
    "assignable_isbn_13": null,
    "license_text": "<i>Introduction to Python Programming</i> by OpenStax is licensed under Creative Commons Attribution-NonCommercial-ShareAlike License v4.0.  This book utilizes the OpenStax Python Code Runner. The code runner is developed by Wiley and is All Rights Reserved.",
    "license_name": "Creative Commons Attribution-NonCommercial-ShareAlike License",
    "license_version": "4.0",
    "license_url": "https://creativecommons.org/licenses/by-nc-sa/4.0/",
    "pdf_url": "https://assets.openstax.org/oscms-prodcms/media/documents/Introduction_to_Python_Programming-WEB.pdf",
    "high_resolution_pdf_url": "https://assets.openstax.org/oscms-prodcms/media/documents/Introduction_to_Python_Programming-WEB.pdf",
    "free_stuff_instructor": [
        {
            "type": "content",
            "value": {
                "id": 1,
                "heading": "<b>Academic freedom.</b> No catch.",
                "content": "<p>Access free resources integrated with your book. <a href=\"https://accounts.openstax.org/signup\">Sign up</a> for an account to access locked content.</p>",
                "content_logged_in": null,
                "button_text": null,
                "button_url": null
            },
            "id": "5301a60d-bd48-4959-9c0b-9caf303e865a"
        }
    ],
    "free_stuff_student": [
        {
            "type": "content",
            "value": {
                "id": 2,
                "heading": "<b>Academic success.</b> You've got this.",
                "content": "<p>And we've got resources that will help you ace your course.</p> <a",
                "content_logged_in": null,
                "button_text": null,
                "button_url": null
            },
            "id": "100d3688-a55a-4eec-9370-bc4020a642de"
        }
    ],
    "community_resource_heading": "OER Commons Hub Resources",
    "community_resource_logo_url": "https://assets.openstax.org/oscms-prodcms/media/documents/OERC_logo.jpg",
    "community_resource_url": "https://oercommons.org/groups/openstax-introduction-to-python-programming/14678/?__hub_id=27",
    "community_resource_cta": "Visit the Hub",
    "community_resource_blurb": "Members of the OpenStax community can join the Hub to share resources they've created to use with our <i>Introduction to Python Programming</i> book. Find resources and submit your own!",
    "community_resource_feature_text": "",
    "webinar_content": [
        {
            "type": "content",
            "value": {
                "id": 3,
                "heading": "Find a webinar",
                "content": "Learn more by attending one of our free webinars featuring OpenStax authors, staff, and partners.",
                "content_logged_in": "",
                "button_text": null,
                "button_url": "https://openstax.org/webinars"
            },
            "id": "c1fafb0e-0162-4159-8d56-5d95517430f3"
        },
        {
            "type": "link",
            "value": "http://openstax.org/webinars",
            "id": "72967730-33b0-4830-98b4-0e8c17eda871"
        }
    ],
    "promote_snippet": [],
    "webview_link": "https://cnx.org/contents/8d08a72f-5463-4856-b05c-58b0d65f5e61",
    "webview_rex_link": "https://openstax.org/books/introduction-python-programming/pages/1-introduction",
    "rex_callout_title": "Recommended",
    "rex_callout_blurb": "<b>New</b> Highlight and add notes — it’s 100% free!",
    "bookshare_link": "",
    "amazon_coming_soon": false,
    "amazon_link": "",
    "audiobook_link": "",
    "bookstore_coming_soon": false,
    "bookstore_content": [],
    "errata_content": "All OpenStax textbooks undergo a rigorous review process. However, like any professional-grade textbook, errors sometimes occur. The good part is, since our books are web-based, we can make updates periodically. If you have a correction to suggest, submit it here. We review your suggestion and make necessary changes.",
    "assignable_book": false,
    "partner_list_label": "Technology Partners",
    "partner_page_link_text": "See more!",
    "customization_form_heading": "Customization Form",
    "customization_form_subheading": "Please select the modules (up to 10), that you want to customize with Google Docs.",
    "customization_form_disclaimer": "<p data-block-key=\"zkdax\"><b>Disclaimer</b></p><p data-block-key=\"vcmjf\">The following features and functionality are not available to teachers and students using Google Docs customized content:</p><ul><li data-block-key=\"9qnbx\"><b>Errata updates</b>. OpenStax webview is updated at least twice yearly. Customized Google Docs will not receive these content updates.</li><li data-block-key=\"kwlwp\"><b>Access to study tools</b>. OpenStax webview has in-book search, highlighting, study guides, and more available for free. This functionality will not be available in Google Docs versions.</li><li data-block-key=\"xhzfe\"><b>Formatting.</b> Print books and webview have a specific design and structure format developed for those platforms. These functionalities are not available in the Google Docs versions.</li></ul>",
    "customization_form_next_steps": "<p data-block-key=\"ad6km\"><b>Next Steps</b></p><ol><li data-block-key=\"8eh5b\">Within two business days, you will receive an email for each module that you have requested access to customize.</li><li data-block-key=\"ljhz9\">The link provided in the email will be your own copy of the Google Doc that OpenStax generated for you.</li><li data-block-key=\"h97dr\">Once you have accessessed the document you can make the changes you desire and share with your students. We recommend using the \"Publish to the Web\" functionality under the file menu for sharing with students.</li></ol>",
    "videos": [],
    "translations": [],
    "promote_image": {
        "id": 2105,
        "meta": {
            "width": 1750,
            "height": 718,
            "type": "wagtailimages.Image",
            "detail_url": "https://openstax.org/apps/cms/api/v2/images/2105/",
            "download_url": "https://assets.openstax.org/oscms-prodcms/media/original_images/Python_02_00_000.jpg"
        },
        "title": "PythonPromoteStockImage_Book_2024"
    },
    "last_updated_pdf": null,
    "featured_resources_header": "Resources for taking your course online",
    "support_statement": "With philanthropic support, this book is used in <span id='adoption_number'></span> classrooms, saving students <span id='savings'></span> dollars this school year. <a href='/impact'>Learn more about our impact</a> and how you can help.",
    "adoptions": null,
    "savings": null
}