Description
This course will introduce you to the basics of programming and algorithms. You will implement the different key stages of building a computer program using the Python language. You will discover lexicon and syntax elements, tools, code organization and tests.
Who is this training for ?
For whom ?
Anyone who needs to learn to program.
Prerequisites
No special knowledge.
Training objectives
Training program
- A program
- What is a program?
- What is a language? The different paradigms.
- What is 'an algorithm? The pseudo-language.
- Compilers. Executables.
- Presentation of a first algorithm in pseudo-language.
- Genesis of a first program
- Writing a program: syntax and instructions.
- Compilation and execution of the program.
- What is a library? Its role, its usage.
- Exercise: Writing, compiling and running a first Python program.
- Programming rules
- Naming convention. Syntactic convention.
- Use of comments. Why comment on developments?
- Improve the readability of programs: code indentation, code splitting. ..
- The variables
- What is a variable?
- Primitive types: integers, strings, real numbers, others.
- Declaration, definition and initialization of a variable. Constants.
- Input, display, assignment, type conversion.
- Organize your data in the form of tables.
- Practical work
- Operators and expressions
- The different operators (addition, equality...).
- Combination of operators.
- Boolean expression.
- Exercise
- Control structures
- Alternative selections (if, if-then-else...).
- Instruction blocks (concept of Start...End).
- Iterative loops (while-repeat, repeat-until, for-from-to).
- Nesting instructions.
- Exercise
- Procedures and functions
- Definitions: procedure, function. Interest.
- Passing parameters.
- The return code of a function. Calling functions.
- Maintenance, debugging and testing of programs
- Know how to interpret the different error messages.
- Use a debugger: execution of a program step by step, breakpoints, inspect variables.
- Using a debugger: executing a program step by step, breakpoints, inspecting variables.
- Practical work