Guidelines

How to Use CodeFriends Python Practice Environment

The Python practice environment allows you to view step-by-step guidelines, write code, and check the execution results of your code all on a single screen.

By using the CodeFriends code editor, you can check the execution results of Python code in real time via a web browser, without the need for complex Python installations.

code-editor-en.jpg


Each section's height and width can be adjusted with your mouse. Position your mouse at the border of a section and drag up/down or left/right to adjust the section's size.



1. Step-by-step Guidelines

On the left side of the screen, you will see step-by-step guidelines organized by lesson topic.

The material you're currently reading is the guideline for the Chapter 1 of the Orientation lecture, How to Use CodeFriends Python Practice Environment.


2. Writing Code

In the Write Code section in the middle of the screen, you can write Python code based on the guidelines.

You can either copy and paste the code provided in the guideline into the writing area or type it out yourself.

Click the Copy button at the top right of the Python code below and paste the copied content into the code writing section.🧑🏻‍💻


Paste in the Write Code (middle) section
print("Hello, World!")

3. Viewing Results in Real-time

On the right side of the screen, you can check the execution results of your Python code in real time.

To ensure the values appear, you must wrap the content you want to display in the print() function's parentheses.

  • Note: In programming, a function is a block of code designed to perform a particular task. The print() function outputs the content within the parentheses to the screen (console).
Using the print function
content = "Hello" # Not displayed on the screen # Only the content within the print function's parentheses is displayed print("Hi") # Outputs Hi

Complete the mission below and click the Complete button to proceed to the next lesson! 🚀

Mission
0 / 1

Using the print function

Write a Python code to print codefriends on the screen.

Hint: Enter the text you want to print inside the parentheses of the print( ) function.

print("
")

Guidelines

AI Tutor

Publish

Design

Upload

Notes

Favorites

Help

Code Editor

Run
Generate

Execution Result