0% found this document useful (0 votes)
214 views

02 Hands-On Activity 1 in Data Structures and Algorithms

The document provides instructions for a hands-on activity to create a Python script that compares two numbers entered by the user. It directs the user to study syntax examples, go to an online IDE, write a script to get two numbers from the user, compare the numbers, and display a message stating if the first is less than, greater than, or equal to the second number. The user is then asked to upload the Python file and a screenshot of the output.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
214 views

02 Hands-On Activity 1 in Data Structures and Algorithms

The document provides instructions for a hands-on activity to create a Python script that compares two numbers entered by the user. It directs the user to study syntax examples, go to an online IDE, write a script to get two numbers from the user, compare the numbers, and display a message stating if the first is less than, greater than, or equal to the second number. The user is then asked to upload the Python file and a screenshot of the output.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

“Data Structures and Algorithms”

02 Hands-on Activity 1 – ARG

Instructions:
✓ 1. Study the syntaxes in this image file: sample.PNG
✓ 2. Go to this online IDE.
3. Create a Python script that will compare two (2) numbers entered by the user. Refer to the
attached image and to the following algorithm. There is no need to create a class similar to
how Java works.
3.1. User enters the first number.
3.2. User enters the second number.
3.3. If the first number is less than, greater than, or equal the second number, a message is
displayed.

4. Upload the .py file and a screenshot of your output.

You might also like