ChatGPT: Your Python Coach
With Membership
Suggested price

ChatGPT: Your Python Coach

Mastering the Essentials in 100 Prompts

About the Book

"ChatGPT: Your Python Coach. Mastering the Essentials in 100 Prompts" is a comprehensive guide designed to help you embark on an exciting journey into the world of programming with Python. This book combines the power of AI with the expertise of the author to provide an interactive and engaging learning experience. With ChatGPT as your reliable mentor, you'll effortlessly traverse the fundamental concepts of Python programming. From variables and data types to flow control structures and modularization, you'll establish a robust foundation in computational thinking with Python. Immerse yourself in the carefully curated content comprising of examples, explanations, and thought-provoking challenges, guaranteeing a dynamic and enriching learning process. Get ready to unlock your coding potential and unleash your creativity, as you evolve into a skilled Python programmer under the expert guidance of ChatGPT through 100 prompts.

  • Share this book

  • Categories

    • Computers and Programming
    • Python
    • GPT
    • Computer Science
  • Feedback

    Email the Author(s)


About the Author

Sergio Rojas-Galeano
Sergio Rojas-Galeano

Sergio Rojas-Galeano is an enthusiastic computer scientist with a passion for the cross-roads between Artificial Intelligence, Machine Learning, Evolutionary Computation, Natural Language Processing, Software Engineering, and Scientific Edition. With professional experience from both academic and industry positions in Colombia and England, he is deeply committed to upholding ethical standards and advancing the field of computer science. Currently, he serves as a Full Professor at Universidad Distrital Francisco José de Caldas (Colombia), where he has taught programming and computational intelligence for over two decades. With a PhD in Computer Science from University College London (UCL) in the UK (awarded in 2009), he has also been a visiting scholar at UCL (in 2022) and Universidad de Málaga in Spain (in 2023). He is author or co-author of over 70 scientific papers and has previously published the book, Models of Learning and Optimisation for Data Scientists (LeanPub, 2019).

Table of Contents





  Is this the right book for you?

  About Python

  Programming cycle

  The tools

  Using Colab

  Using PythonTutor

  ChatGPT as a programming coach

  Using ChatGPT

  ChatGPT prompt template

Know your Basics

  Hello, World!

  Strings and string formatting

  Hands-on time!

Data Building Blocks

  Data types

  Basic Input/Output

  A coding buddy

  Hands-on time!

The Operations Room

  Arithmetic operators

  Comparison operators

  Logical operators

  Bitwise operators

  Assignment operators

  Identity operators

  Memberships operators

  Exponentiation operator

  Advanced math operators

  Hands-on time!

The Control Tower

  If/Else statements

  Match-case statements

  For loop statements

  While loop statements

  Nested control structures

  Hands-on time!

The Containers Zone






  Hands-on time!

Modular Affairs

  Modularisation and Reusability


  Classes and Objects

  Hands-on time!


  Digging Further

  Suggested Readings

List of the 100 prompts

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

80% Royalties. Earn $16 on a $20 book.

We pay 80% royalties. That's not a typo: you earn $16 on a $20 sale. If we sell 5000 non-refunded copies of your book or course for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earnedover $13 millionwriting, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub