Skip to main content
Mathematics LibreTexts

1.1: Replit

  • Page ID
    122053
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Getting Started with Replit

    For new and casual users, we recommend using the free online Python environment Replit, available at https://www.replit.com.

    After registering an account on Replit and answering (or skipping) the initial questions, you will be presented with the Replit Home page.

    What is a Repl?

    Repl stands for "Read Evaluation Print Loop" and, at Replit, is an interactive environment for developers to create small projects. Each of our small programs will take place inside individual Repls.

    1. To start, click the "+ Create" button.

    clipboard_ece9b4c9fae18b783cc63b6ce86e6df15.png

    2. Since we will be using Python, choose the "Python" replit.

    clipboard_e5a1d43bc8e6fd26d0e3af32eee2f4453.png

    3. Type in a Title for your Repl, or leave it as the randomly-generated suggestion.

    clipboard_e1f71d83b559c9842ffe386b1848829bd.png

    4. Click "Create Repl".

    Your first Repl usually has a small tutorial. Feel free to read through each of the prompts to get familiar with the environment.

    Hello World!

    Traditionally, your first program in a new language is a program that simply prints "Hello World!". This is very easy in python and can be done by typing the following line as line 1 in your newly-created Repl.

    
    1  print("Hello World!")
    
    

    In Replit, it should like this:

    clipboard_ead8075fdc00c7d6e67b9b5233f8b3950.png

    To run your program, click the green "Run" button at the top.

    clipboard_ecb676c7bfbd90f3325c5c08f884b346f.png

    Now, on the right side, you will see the output in Python's "console". The console is where text-based programs will display their result.

    clipboard_ebc11aab7f06e517a19549b860601e1b3.png

    Congratulations! You've written your first Python program.


    1.1: Replit is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?