For introductory-level Python programming and/or data-science courses. A groundbreaking, flexible approach to computer science and data science The Deitels' Introduction to Python for Computer Science and Data Science: Learning to Program with AI, Big Data and the Cloud offers a unique approach to teaching introductory Python programming, appropriate for both computer-science and data-science audiences. Providing the most current coverage of topics and applications, the book is paired with extensive traditional supplements as well as Jupyter Notebooks supplements. Real-world datasets and artificial-intelligence technologies allow students to work on projects making a difference in business, industry, government and academia. Hundreds of examples, exercises, projects (EEPs), and implementation case studies give students an engaging, challenging and entertaining introduction to Python programming and hands-on data science. The book's modular architecture enables instructors to conveniently adapt the text to a wide range of computer-science and data-science courses offered to audiences drawn from many majors. Computer-science instructors can integrate as much or as little data-science and artificial-intelligence topics as they'd like, and data-science instructors can integrate as much or as little Python as they'd like. The book aligns with the latest ACM/IEEE CS-and-related computing curriculum initiatives and with the Data Science Undergraduate Curriculum Proposal sponsored by the National Science Foundation.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
# Introduction to Python for the Computer and Data Sciences
## 【One-Line Pitch】
A comprehensive, modular Python textbook that bridges traditional computer science fundamentals with modern data science, AI, and cloud computing—ideal for instructors and self-learners who want one book that serves both CS1 and introductory data science courses.
## 【Book Arc】
- **Opening (~0%–11%)**: Establishes the book's dual-audience philosophy (CS majors and data science students), introduces the Jupyter Notebook/IPython workflow, and covers Python basics including strings, triple-quoted strings, and the importance of understanding problems before coding.
- **Early (~11%–26%)**: Builds core programming foundations—control flow with sequence-controlled repetition, short-circuit evaluation, functions and argument passing (with emphasis on Python's pass-by-object-reference model), lists and mutability, and simulation techniques using random number generation.
- **Early-to-Middle (~26%–41%)**: Transitions into data structures and data science essentials—sets and their operations, NumPy arrays (dimensions, shapes, views vs. deep copies), and the first major introduction to pandas Series and DataFrames, plus data munging/wrangling concepts that acknowledge real-world data preparation challenges.
- **Middle (~41%–52%)**: Delves into object-oriented programming with classes, validation through exceptions, class attributes, duck typing and polymorphism, and introduces testing via doctests—plus a substantial case study building a card game (Blackjack) that ties OOP concepts together.
- **Middle-to-Late (~52%+)**: Covers algorithms (searching and sorting with visualization), and transitions into natural language processing with TextBlob, demonstrating how Python applies to real-world text analysis—the gateway to the book's AI and big data content.
## 【Key Takeaways】
- **Modular architecture for dual audiences** (Opening): The book is explicitly designed so CS instructors can add data science depth and data science instructors can add Python fundamentals—making it unusually flexible for course design across majors, from two-year colleges to graduate programs.
- **Jupyter Notebooks as a first-class learning environment** (Opening): Rather than treating notebooks as an afterthought, the book integrates IPython sessions throughout, showing interactive exploration as the natural way to learn Python and data science simultaneously.
- **Python's pass-by-object-reference model** (Early): Understanding that "everything in Python is an object" and arguments pass references (not values or traditional references) is crucial for writing efficient code that handles large objects without unnecessary copying.
- **Simulation as a learning tool** (Early): The book uses die-rolling and coin-flipping simulations to teach loops, conditionals, and the law of large numbers—making abstract programming concepts tangible through statistical experimentation.
- **Data munging is the real work of data science** (Early): The book honestly addresses that data scientists can spend up to 75% of their time cleaning and preparing data, introducing pandas and wrangling techniques early so students develop realistic expectations and skills.
- **Duck typing enables flexible polymorphism** (Middle): Python's "if it looks like a duck and quacks like a duck" approach means you don't need rigid inheritance hierarchies—objects just need the right methods, which simplifies code design significantly.
- **Testing is built into the learning process** (Middle): Doctests are introduced as an accessible testing mechanism, showing how to embed executable examples in documentation and verify behavior—a practical skill often deferred in introductory texts.
- **From algorithms to applied AI** (Middle-to-Late): The progression from searching/sorting algorithms to TextBlob-based natural language processing demonstrates how foundational CS concepts power modern AI applications, preparing readers for the book's later big data and cloud content.
## 【Reading Tips】
- **Skim the Self-Check exercises**: These True/False and fill-in questions at each section's end are excellent rapid comprehension checks—use them to identify weak spots before moving forward.
- **Deep-read the IPython sessions**: The interactive sessions showing inputs and outputs are where the book's real teaching happens. Recreate them yourself in Jupyter Notebooks rather than just reading them.
- **Pay special attention to the "Intro to Data Science" sections**: These appear throughout and form a parallel track that introduces pandas, data munging, and NLP incrementally—even if you're primarily a CS student, these sections make the book distinctive.
- **Treat the card game case study as a capstone**: The Blackjack implementation in the OOP chapters ties together classes, validation, properties, and polymorphism—work through it fully rather than skimming.
- **Watch for the "law of large numbers" theme**: The simulation exercises build toward statistical thinking that becomes essential in later data science chapters—don't skip the coin-flip and dice-rolling exercises even if they seem simple.
## 【Coverage Limits】
This guide covers approximately the first half of the book (through ~52%), based on available excerpts. The book's later content on AI, big data, and cloud computing is referenced but not detailed here.
##
Excerpt 1
ndard Python computer science and related majors. First and foremost, our book is a solid contemporary Python CS 1 entry. The computing curriculum recommenda...
works exclusively with that copy. Changes to the function’s copy do not affect the original variable’s value in the caller. With pass-by-reference, the calle...
, custom indexing, missing data, data that’s not structured consistently and data that needs to be manipulated into forms appropriate for the databases and d...
some casinos require the dealer to hit and some require the dealer to stand (we require the dealer to stand). Such a hand is known as a “soft 17” because tak...
each group of 50 elements in the estimator’s labels_ array should have a distinct label. As you study the results below, note that the KMeans estimator uses...
for the UNITS and 50 for the MAXIMUM. 17.8.3 Simulating an Internet-Connected Thermostat in Python Simulation is one of the most important applications of co...
der. Row 4, Plus minus, left to right, addition subtraction. Row 5, greater than less than or equal to less than greater than equal to, left to right, less t...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Introduction to Python for the Computer and Data Sciences (Paul Deitel, Paul J. Deitel, Harvey Deitel)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Introduction to Python for the Computer and Data Sciences (Paul Deitel, Paul J. Deitel, Harvey Deitel)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment