Saltar al contenido
Back to home
Session 01 Python 2º

Introduction to Programming and Logical Thinking

Introduction to logical thinking, algorithms, and programming fundamentals through practical Python exercises.

Learning objectives

By the end of the session, participants will be able to:

  • Understand what a program is and how its instructions are executed.
  • Break simple problems down into ordered steps.
  • Identify the basic concepts of an algorithm.
  • Write and run small Python programs.
  • Assess their initial skill level and identify areas for improvement.

Topics

1. What Is Programming?

  • The concepts of programs and instructions.
  • How a computer executes instructions.
  • The difference between a problem, an algorithm, and a program.
  • The importance of precise and well-ordered instructions.

2. Logical Thinking and Algorithms

  • Problem decomposition.
  • Identifying inputs, processes, and outputs.
  • Designing algorithms as sequences of steps.
  • Representing solutions using pseudocode.

3. Getting Started with Python

  • The print() function for displaying information.
  • Variables and basic data types.
  • The input() function for receiving user input.
  • Simple arithmetic operations.
  • Running and modifying programs.

4. Guided Practice

  • Displaying a message on the screen.
  • Storing data in variables and using it in calculations.
  • Creating a program that requests information from the user and displays a result.
  • Identifying and fixing simple errors.
  • Solving a small problem using the concepts introduced.

5. Initial Assessment and Discussion

  • Individual exercises.
  • Identifying difficulties and questions.
  • Comparing different solutions.
  • Reflecting on the importance of logical thinking and problem-solving.

Practical Activity

Develop a small Python program that asks the user for two numbers, calculates their sum, and displays the result. Then modify the program to perform another operation or present the result differently.

Expected Outcome

Each participant will have created at least one working Python program and gained an initial understanding of algorithmic problem-solving.