Programming walkthroughs: Coding with Python and Repl.it
Free!
Minimum price
$7.99
Minimum paid price

Programming walkthroughs: Coding with Python and Repl.it

About the Book

If you're learning Python, you might have asked "what should I build?" This book is for you. We walk you through 15+ projects using Python (and sometimes NodeJS). By the end, you'll not only have significantly improved your Python skills, but you'll also have some useful apps to use and put in your portfolio.

About the Author

Table of Contents

  • Welcome to Code with Repl.it
    • Part 1: The basics of Repl.it
    • Part 2: Advanced Repl.it use
    • Part 3: Building your own projects
  • Understanding the Repl.it IDE: a practical guide to building your first project with Repl.it
    • Introduction: creating an account and starting a project
    • Adding more files to your software project
    • Sharing your application with others
    • Sharing write-access: Multiplayer
    • Make it your own
    • Where next?
  • Working with Files using Repl.it
    • Working with files using Python
    • Creating files using Python
    • Building a weather logging system using Python and Repl.it
    • Exporting our weather data files
    • Make it your own
    • Where next?
  • Managing dependencies using Repl.it
    • Understanding Repl.it’s magic import tool and the universal package manager
    • Installing packages through the GUI
    • Building an NLP project using spaCy
    • Make it your own
    • Where next?
  • Data science with Repl.it: Plots and graphs
    • Installing Matplotlib and creating a basic line plot
    • Making a scatter plot of US cities by state
    • More advanced plotting with seaborn and pandas
    • Saving plots to PNG files
    • Make it your own
    • Where next?
  • Multiplayer: Pair programming with Repl.it
    • Extending our data science article using pair programming: Getting help
    • Make it your own
    • Where next?
  • Repl.it and GitHub: Using and contributing to open-source projects
    • Importing a project from GitHub and running it on Repl.it
    • Looking at the version control panel in Repl.it
    • Forking the project to your own GitHub account
    • Make it your own
    • Where next?
  • Building a game with PyGame and Repl.it
    • Creating a PyGame repl
    • Displaying the sprite using PyGame
    • Making our tennis ball move with each frame
    • Processing events: Detecting mouse clicks
    • Making the ball bounce off the edges and move randomly
    • Adding more balls
    • Make it your own
    • Where next?
  • Staying safe: Keeping your passwords and other secrets secure
    • Understanding .env files
    • Refactoring our weather project to keep our API key secure
    • Testing that the file is not copied into others’ forks
    • Using environment variables in our script
    • Time travelling to find secrets
    • Rotating credentials
    • Make it your own
    • Where next?
  • An introduction to pytest and doing test-driven development with Repl.it
    • Creating a project structure for pytest
    • Defining examples for the name split function
    • Writing the test cases for our names function
    • Fixing our split_name function
    • Using our function
    • Make it your own
    • Where next
  • Productivity hacks
    • Using the global command palette
    • Using the code editing command palette
    • Duplicating entire lines
    • Deleting entire lines
    • Inserting blank lines
    • Indenting and dedenting lines
    • Adding cursors
    • Navigating to specific pieces of code
    • Vim and Emacs key bindings
    • Make it your own
    • Where next?
  • Using the Repl.it database
    • Adding and reading data using the Repl.it database
    • Building a basic phonebook application that can read and store data
    • Make it your own
    • Where next
  • Repl.it Audio
    • Understanding how audio works on Repl.it
    • Getting a free audio file from the Free Music Archive
    • Downloading audio files to our project
    • Playing the audio file using Python
    • Allowing the user to pause, change volume, or get information about the currently playing track
    • Playing individual tones
    • Make it your own
    • Where next
  • Beginner web scraping with Python and Repl.it
    • Overview and requirements
    • Webpages: beauty and the beast
    • Downloading a web page with Python
    • Using BeautifulSoup to extract all URLs
    • Fetching all of the articles from the homepage
    • Where next?
  • Building news word clouds using Python and Repl.it
    • Overview and requirements
    • Web scraping
    • Taking a look at RSS Feeds
    • Setting up our online environment (Repl.it)
    • Pulling data from our feed and extracting URLs
    • Setting up a web application with Flask
    • Downloading articles and extracting the text
    • Returning HTML instead of plain text to the user
    • Generating word clouds from text in Python
    • Adding some finishing touches
    • Where next?
  • Building a Discord Bot with Python and Repl.it
    • Overview and requirements
    • Creating a Repl and installing our Discord dependencies
    • Setting up authorization for our bot
    • Keeping our bot alive
    • Forking and extending our basic bot
  • Building a Discord bot with Node.js and Repl.it
    • Overview and requirements
    • Creating a Repl and installing our Discord dependencies
    • Setting up authorization for our bot
    • Keeping our bot alive
    • Forking and extending our basic bot
  • Creating and hosting a basic web application with Django and Repl.it
    • Setting up
    • Creating a static home page
    • Calling IPIFY from JavaScript
    • Adding a new route and view, and passing data
    • Calling a Django route using Ajax and jQuery
    • Using ip-api.com for geolocation
    • Getting weather data from OpenWeatherMap
  • Building a CRM app with NodeJS, Repl.it, and MongoDB
    • Overview and requirements
    • Creating a Repl and connecting to our Database
    • Making a user interface to insert customer data
    • Updating and deleting database entries
    • Putting it all together
  • Introduction to Machine Learning with Python and Repl.it
    • Overview and requirements
    • Setting up
    • Creating some mock data
    • Understanding vectorization
    • Understanding classification
    • Building a manual classifier
  • Quicksort tutorial: Python implementation with line by line explanation
    • Overview and requirements
    • The Partition algorithm
    • The Quicksort function
    • Testing our algorithm
  • Hiding messages in images: steganography with Python and Repl.it
    • A quick background on steganography
    • Creating the project on Repl.it
    • Encoding a text message as a binary string
    • Adding an ‘end of message’ delimeter
    • Getting pixels from an image
    • Encoding the image with the message
    • Decoding messages from image files
    • Adding a command line wrapper script
    • Where next?
  • Build a 2D Platform Game with PyGame and Repl.it
    • Getting Started
    • Making the Player Walk
    • Making the Player Jump
    • Refining the Game
    • Where Next?
  • Closing note

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...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

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

In fact, authors have earnedover $14 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