Book description
Writing computer programs in Python just got a lot easier! Use AI-assisted coding tools like GitHub Copilot and ChatGPT to turn your ideas into applications faster than ever.AI has changed the way we write computer programs. With tools like Copilot and ChatGPT, you can describe what you want in plain English, and watch your AI assistant generate the code right before your eyes. It’s perfect for beginners, or anyone who’s struggled with the steep learning curve of traditional programming.
In Learn AI-Assisted Python Programming: With GitHub Copilot and ChatGPT you’ll learn how to:
- Write fun and useful Python applications—no programming experience required!
- Use the Copilot AI coding assistant to create Python programs
- Write prompts that tell Copilot exactly what to do
- Read Python code and understand what it does
- Test your programs to make sure they work the way you want them to
- Fix code with prompt engineering or human tweaks
- Apply Python creatively to help out on the job
Learn AI-Assisted Python Programming: With GitHub Copilot and ChatGPT is a hands-on beginner’s guide that is written by two esteemed computer science university professors. It teaches you everything you need to start programming Python in an AI-first world. You’ll hit the ground running, writing prompts that tell your AI-assistant exactly what you want your programs to do. Along the way, you’ll pick up the essentials of Python programming and practice the higher-level thinking you’ll need to create working apps for data analysis, automating tedious tasks, and even video games.
About the Technology
The way people write computer programs has changed forever. Using GitHub Copilot, you describe in plain English what you want your program to do, and the AI generates it instantly.
About the Book
This book shows you how to create and improve Python programs using AI—even if you’ve never written a line of computer code before. Spend less time on the slow, low-level programming details and instead learn how an AI assistant can bring your ideas to life immediately. As you go, you’ll even learn enough of the Python language to understand and improve what your AI assistant creates.
What's Inside
- Prompts for working code
- Tweak code manually and with AI help
- AI-test your programs
- Let AI handle tedious details
About the Reader
If you can move files around on your computer and install new programs, you can learn to write useful software!
About the Authors
Dr. Leo Porter is a Teaching Professor at UC San Diego. Dr. Daniel Zingaro is an Associate Teaching Professor at the University of Toronto. The technical editor on this book was Peter Morgan.
Quotes
...masterfully blends the basics of programming with the effective use of AI tools to produce code.
- Mehran Sahami, Stanford University
This is such a well thought out book from the point of view of someone just starting to code post generative AI tools.
- Ana Bell, MIT
You are about to learn programming with one of the most exciting human task - supporters of this century...
- From the foreword by Beth Simon, UC San Diego
This book accelerates your Copilot programming learning journey beyond what I ever thought possible.
- Austin Z. Henley, Microsoft
Table of contents
- inside front cover
- Learn AI-Assisted Python Programming
- Copyright
- dedication
- contents
-
front matter
- foreword
- acknowledgments
-
introduction
- AI assistants change how programming is done
- Audience
- What we expect from you
- What you will be able to do after reading this book
- The challenge in working with AI assistants
- Why we wrote this book
- Warning: beware of elitism
- How this book is organized: a roadmap
- Source code downloads
- Software/hardware requirements
- liveBook discussion forum
- about the authors
- about the cover illustration
- 1 Introducing AI-assisted programming with Copilot
- 2 Getting started with Copilot
- 3 Designing functions
- 4 Reading Python code: Part 1
- 5 Reading Python code: Part 2
- 6 Testing and prompt engineering
-
7 Problem decomposition
- 7.1 Problem decomposition
- 7.2 Small examples of top-down design
- 7.3 Authorship identification
- 7.4 Authorship identification using top-down design
- 7.5 Breaking down the process subproblem
- 7.6 Summary of our top-down design
-
7.7 Implementing our functions
- 7.7.1 clean_word
- 7.7.2 average_word_length
- 7.7.3 different_to_total
- 7.7.4 exactly_once_to_total
- 7.7.5 split_string
- 7.7.6 get_sentences
- 7.7.7 average_sentence_length
- 7.7.8 get_phrases
- 7.7.9 average_sentence_complexity
- 7.7.10 make_signature
- 7.7.11 get_all_signatures
- 7.7.12 get_score
- 7.7.13 lowest_score
- 7.7.14 process_data
- 7.7.15 make_guess
- 7.8 Going further
- Summary
- 8 Debugging and better understanding your code
- 9 Automating tedious tasks
- 10 Making some games
- 11 Future directions
- references
- index
Product information
- Title: Learn AI-Assisted Python Programming
- Author(s):
- Release date: December 2023
- Publisher(s): Manning Publications
- ISBN: 9781633437784
You might also like
audiobook
Learn AI-Assisted Python Programming
Description Writing computer programs in Python just got a lot easier! Use AI-assisted coding tools like …
book
Advanced Python Programming - Second Edition
Write fast, robust, and highly reusable applications using Python's internal optimization, state-of-the-art performance-benchmarking tools, and cutting-edge …
book
The Well-Grounded Python Developer
If you’re new to Python, it can be tough to understand when, where, and how to …
book
Deep Learning with Python, Second Edition
Printed in full color! Unlock the groundbreaking advances of deep learning with this extensively revised new …