📖 Coding lessons · 1 of 4 · 4 min

What is an algorithm?

An algorithm is a list of clear steps to solve a problem. Computers follow steps exactly, so the steps must be in the right order and leave nothing out.

Algorithm to make lemonade:

  1. Take a glass of water.
  2. Squeeze half a lemon into it.
  3. Add two spoons of sugar.
  4. Stir until the sugar dissolves.
  5. If it is too sour, add more sugar and stir again.

Notice step 5: a decision (if). Programs are built from three ideas: sequence (steps in order), selection (if) and repetition (loops).

💡 Try writing the algorithm for brushing your teeth. Did you forget to open the toothpaste? 😄

🎯 Try it

An algorithm is…

Contact Shuddhi

Like what you see? Take the next step.

Start small and do more whenever you are ready — everything is free to join.

  1. GiveFor you

    Donate once or every month. 80G receipt by email from ₹100.

  2. Volunteer

    Weekends on the ground or online from home. Certificate after one month.

  3. Raise funds

    Start a free campaign for a cause, a person or an NGO and share it with friends.

  4. Lead & partner

    Take on more: coordinate a team, bring your NGO on board or partner as a company.