Student Guide to Repl.it

Student Guide to Repl.it 

What is repl.it?

Rept.it is a website run with the mission of making programming more accessible. Repl.it makes it possible for OSTERI to design original content for programming lessons on topics spanning from genetics to physics, from statistics to image processing and to make that content easily and intuitively accessible to students.

How to use repl.it?

Our lessons contain a mix of embedded terminals (essentially a place to create and run code; you can think of it like Microsoft Word, but for code) in the OSTERI website, as well as terminals hosted on the repl.it site.

Embedded terminals

Embedded terminals look like this:

This is an example of a repl.it embedded terminal. As you can see, there are two lines of code in the terminal. In a typical lesson, there would be text preceding this terminal explaining the concept exemplified in these lines of code, in this case how to add two numbers in Python3. 

This is an example of a repl.it embedded terminal. As you can see, there are two lines of code in the terminal. In a typical lesson, there would be text preceding this terminal explaining the concept exemplified in these lines of code, in this case how to add two numbers in Python3. 

With this embedded terminal, you can click on the run button in the upper left corner to execute the lines of code written in the terminal:

Because the command  print(4.4 + 5.3)  yields an output of 9.7,  9.7  is displayed directly below the embedded window. As there was no function created or executed in these lines of code,  None  is printed below the final line of output for the terminal; this can be ignored. 

Because the command print(4.4 + 5.3) yields an output of 9.7, 9.7 is displayed directly below the embedded window. As there was no function created or executed in these lines of code, None is printed below the final line of output for the terminal; this can be ignored. 

If you want to try your hand at implementing a similar example, you can click on the edit on repl.it button in the upper right corner:

Repl.it_edit.jpg

This will open a new tab on your browser and take you to the repl.it website. There you will be asked to create a free account or continue anonymously:

We recommend creating an account (all you need is an email address), since an account will allow repl.it to save your work and one will be required for more advanced lessons.

We recommend creating an account (all you need is an email address), since an account will allow repl.it to save your work and one will be required for more advanced lessons.

After you are logged in, you will be able to edit and run the code, saving it on your repl.it account. For example, to complete the first exercise in Lesson 1 on the repl.it site, type the solution to question 1 in the line below the commented instructions and then click on the run button near the top and center of the screen. When the code is executed, any output will be printed in the darker area on the right side of the screen:

Because line 6 of the code has been edited with a solution, when the  run  button is clicked, the solution (6.3 + 8.2 = 14.5) is printed in the darker output terminal on the right side of the screen.

Because line 6 of the code has been edited with a solution, when the run button is clicked, the solution (6.3 + 8.2 = 14.5) is printed in the darker output terminal on the right side of the screen.

Repl.it assignments

For more advanced lessons, we have created assignments hosted on the repl.it website. We will link to those assignments from the OSTERI lesson pages. By allowing repl.it to host these more advanced examples and assignments, we can have lessons that involve creating cool graphics and better data visualizations. These assignments, however, will require that each student create his or her own free account at repl.it.

Check back here for more detailed instructions on how to navigate the repl.it site, create an account, and complete the assignments.

Want to learn more?

You can check out more about repl.it and even create your own lessons at https://repl.it.