Lesson 2 • Beginner

Getting Started with iPseudo

15 minutes
Foundation

Your First iPseudo Program

Welcome to your first hands-on lesson! In this tutorial, you'll write and run your very first iPseudo program. By the end, you'll understand the basic structure of iPseudo code and how to use the IDE.

The iPseudo IDE Interface

When you open iPseudo IDE, you'll see several key areas:

1. Top Navigation Bar

  • New - Create a new empty file
  • Open - Open an existing .pseudo file
  • Save - Save your current work
  • Run - Execute your pseudocode (⏯️ button)
  • Flow - Generate flowchart diagram
  • Settings - Customize your environment

2. Editor Panel

The main area where you write your code. It features syntax highlighting, line numbers, and auto-completion to help you code faster.

3. Console Panel

Below the editor, this is where you see:

  • Program output (Print statements)
  • Input prompts (when using Input)
  • Error messages (if something goes wrong)

4. Theme Toggle

Switch between dark and light themes to suit your preference and environment.

Basic Program Structure

Every iPseudo program follows a consistent structure. Here's the anatomy of a basic program:

Algorithm ProgramName

    # Your code goes here
    # Write statements between Algorithm and Endalgorithm

Endalgorithm
Structure Components
  • Algorithm - Marks the beginning of your program (required)
  • ProgramName - A descriptive name for your algorithm (no spaces, use CamelCase)
  • Endalgorithm - Marks the end of your program (required)

Hello World - Your First Program

Let's start with the traditional "Hello World" program. This simple program demonstrates the basic structure and how to display output.

Example 1: Hello World
Algorithm HelloWorld

Print "Hello, World!"

Endalgorithm
Output
Hello, World!

Let's Break It Down:

  • Algorithm HelloWorld - Declares a program named "HelloWorld"
  • Print "Hello, World!" - Displays text to the console
  • Endalgorithm - Ends the program
Try It Yourself!
  1. Open iPseudo IDE
  2. Type the code exactly as shown above
  3. Click the Run button (▶️)
  4. See "Hello, World!" appear in the console!

💬 Adding Comments

Comments are notes in your code that help explain what's happening. They're ignored during execution and are just for humans reading the code.

Example 2: Using Comments
Algorithm HelloWithComments

# This is a comment - it explains what the code does
# Comments start with the # symbol

Print "Hello, World!"  # You can also comment after code

# This line won't display because it's just a comment

Endalgorithm
Output
Hello, World!

Notice that only the Print statement produces output. All comments are completely ignored.

📤 Displaying Multiple Lines

You can have multiple Print statements to display several lines of output.

Example 3: Multiple Outputs
Algorithm WelcomeMessage

Print "================================"
Print "   Welcome to iPseudo IDE!"
Print "   Learn Pseudocode Easily"
Print "================================"
Print ""  # Empty line
Print "Let's start coding!"

Endalgorithm
Output
================================ Welcome to iPseudo IDE! Learn Pseudocode Easily ================================ Let's start coding!

🔤 Program Naming Rules

When naming your algorithms, follow these rules:

✅ Valid Names:

  • HelloWorld - CamelCase (recommended)
  • CalculateSum - Descriptive and clear
  • Program1 - Can include numbers
  • MyFirstProgram - Multiple words combined

❌ Invalid Names:

  • Hello World - No spaces allowed
  • 123Program - Can't start with a number
  • My-Program - No hyphens
  • Calculate!Sum - No special characters
Best Practice
Use descriptive names that explain what your program does. CalculateAverage is much better than Program1 because it tells you the purpose immediately.

Running Your Code

To execute your program in iPseudo IDE:

  1. Write your code in the editor
  2. Click the Run button (▶️) in the top navigation
  3. Watch the console for output or errors
  4. Interact if needed (for Input statements, which we'll learn later)

Keyboard Shortcut

You can also run your code using the keyboard shortcut: Ctrl+Enter (Windows/Linux) or Cmd+Enter (Mac).

🐛 Understanding Errors

If there's a problem with your code, iPseudo will show an error message in the console. Let's look at common mistakes:

Error 1: Missing Endalgorithm

# ❌ Wrong - Missing Endalgorithm
Algorithm BrokenProgram

Print "Hello"

# Missing Endalgorithm here!

Error 2: Misspelled Keywords

# ❌ Wrong - "Algoritm" is misspelled
Algoritm MisspelledKeyword

Print "Hello"

Endalgorithm

Error 3: Missing Quotes

# ❌ Wrong - Text needs quotes
Algorithm NoQuotes

Print Hello World  # Missing quotes around text!

Endalgorithm
Common Mistakes
  • Forgetting Endalgorithm
  • Misspelling keywords (Algorithm, Print, etc.)
  • Forgetting quotes around text strings
  • Not matching opening and closing quotes
Always read error messages carefully – they tell you what went wrong!

Customizing Your IDE

iPseudo IDE offers several customization options:

Themes

  • Dark Theme - Easy on the eyes, great for extended coding sessions
  • Light Theme - Bright and clear, good for daytime use

Font Options

  • JetBrains Mono - Coding font with ligatures
  • Fira Code - Popular monospace font
  • Inter - Clean modern font

Font Size

Adjust the editor font size to your comfort level (12px - 20px).

💾 Saving Your Work

Don't lose your hard work! Save your programs regularly:

  1. Click the Save button in the top navigation
  2. Choose a location on your computer
  3. Give your file a descriptive name (e.g., hello-world.pseudo)
  4. Click Save

Your files are saved with the .pseudo extension, making them easy to identify and open later.

📂 Opening Existing Files

To open a saved program:

  1. Click the Open button
  2. Navigate to your .pseudo file
  3. Select it and click Open
  4. Your code appears in the editor, ready to run or edit

Complete Example Program

Let's put everything together in a more complete program:

Complete Example: My First Program
Algorithm MyFirstProgram

# =====================================
# My First iPseudo Program
# Author: [Your Name]
# Description: A welcome message program
# =====================================

# Display header
Print "****************************"
Print "*  MY FIRST iPSEUDO APP   *"
Print "****************************"
Print ""

# Display welcome message
Print "Hello! I just wrote my first program."
Print "This is exciting!"
Print ""

# Display closing message
Print "iPseudo makes coding fun and easy."
Print "Let's learn more!"

Endalgorithm
Output
**************************** * MY FIRST iPSEUDO APP * **************************** Hello! I just wrote my first program. This is exciting! iPseudo makes coding fun and easy. Let's learn more!

📋 Quick Reference

Component Syntax Purpose
Algorithm Declaration Algorithm Name Start your program
End Algorithm Endalgorithm End your program
Output Text Print "text" Display text
Comment # comment Add notes/explanations
Empty Line Print "" Create blank line

Key Takeaways

  • ✅ Every program starts with Algorithm and ends with Endalgorithm
  • ✅ Use Print to display text (text must be in quotes)
  • ✅ Comments start with # and are for documentation
  • ✅ Program names should be descriptive and use CamelCase
  • ✅ The Run button (▶️) executes your code
  • ✅ Always save your work with the .pseudo extension
  • ✅ Read error messages carefully to fix problems

💪 Practice Exercises

Try These Exercises

Exercise 1: Personal Introduction
Create a program called IntroduceMyself that displays your name, age, and favorite hobby using separate Print statements.
Exercise 2: ASCII Art
Create a program that displays simple ASCII art (like a smiley face or your initials) using Print statements.
Exercise 3: Quote Display
Write a program that displays your favorite quote with proper formatting (author credit, decorative borders, etc.).
Exercise 4: Program Documentation
Take any of your previous programs and add comprehensive comments explaining what each section does.
Congratulations!
You've written your first iPseudo programs! You now understand the basic structure and how to use the IDE. In the next lesson, we'll learn about variables and how to store data in your programs.