Programmation
782 documents à télécharger gratuitement
Cours, examens, TD, TP et exercices de programmation. Thèmes couverts : algorithmique, langage C, Java, Python, POO, structures de données.
This document covers the basics of creating graphical user interfaces (GUIs) using Tkinter in Python. It includes information about the main events, interface controls, and example code segments. It emphasizes the portability of the interfaces across different operating systems.
This document discusses collections in Java, focusing on defining data collections, their types, and their implementations. It elaborates on dynamic arrays such as ArrayList and includes sample code for creating and manipulating such collections. Overall, it serves as a comprehensive guide for understanding Java's collection framework.
The document provides exercises for learning basic Python programming concepts. It includes two exercises: the first demonstrates file handling and string manipulation techniques to extract file extensions, while the second guides users through building a simple inventory management system using dictionaries and exception handling. The exercises focus on iterative inputs and outputs along with conditionals to ensure structured learning. Additionally, the second exercise addresses user interaction through menu-driven options for inventory operations.
This document consists of two programming exercises aimed at basic problem-solving skills. The first exercise involves writing a program with two functions: one to receive a list of filenames and another to extract file extensions. The second exercise focuses on managing a dynamic inventory of products using a dictionary, allowing for item addition, display of all products, consultation by name, and ending the program. Both exercises rely on user input to simulate practical system functionality.
The document presents exercises focused on programming tasks involving functions and data management in Python. The first exercise requires creating a program that manages file extensions, while the second involves using dictionaries to store and consult product data. Each exercise includes example executions to illustrate the expected outputs.
This document covers the principles of inheritance and interfaces in object-oriented programming. It discusses super-types and sub-types, the properties and methods inherited from super-types, and provides relevant examples. Key concepts include redefinition, overloading, and abstract classes.
The document is a syllabus for a Python programming initiation course, covering several essential modules such as dictionaries, sets, file handling, classes, and exception management. It includes practical examples, syntax breakdowns, and theoretical explanations, making it a blend of foundational and advanced-level programming concepts. Modules on dictionaries and sets explore data structuring and manipulation, while file handling delves into text, binary, and CSV files. The course concludes with advanced topics like object-oriented programming and exception handling, focusing on construct...
Ce document présente un cours d'initiation à la programmation en Python, axé sur les structures de données telles que les dictionnaires et les ensembles. Il couvre également les opérations de base, la gestion des exceptions et des exemples pratiques. Les apprenants sont encouragés à manipuler ces concepts via des exercices en ligne.
This document outlines an activity in Python where users create a guessing game to predict a number between 1 and 100. The game involves utilizing the 'random' module to generate a random integer and provides feedback ('higher' or 'lower') based on user input. The game must be robust to invalid inputs, handle interruptions gracefully, and limit the number of attempts to seven. Additionally, an example execution of the program is provided to guide implementation.
This document outlines an activity to create a number-guessing game in Python that allows users to guess a number between 1 and 100. It emphasizes the use of the random module to generate numbers and includes requirements for input validation and limits on attempts. The example execution illustrates how the game functions and provides feedback on guesses.
This document discusses the integration and engineering of intelligent systems with a focus on agent programming. It introduces the JaCaMo meta-model and outlines the main constructs of the Jason programming language for developing BDI agents. The document provides an overview of agent abstractions, dynamics, and management infrastructures.
This document discusses Multi-Agent Oriented Programming (MAOP) and its applications through the JaCaMo platform. It outlines key features such as abstraction, modularity, and dynamic extensibility. Furthermore, it provides an overview of the JaCaMo meta-model, including the environment, agent, and organization dimensions.
This document contains a set of exercises for a course on information retrieval focusing on the construction of inverted indexes, complexity of boolean queries, and optimization of boolean processing orders. It includes tasks such as building an inverted index, analyzing query intersections, and recommending query processing orders based on postings list sizes.
This document provides a beginner-level exercise series designed to teach foundational Python programming skills. Exercises include writing scripts to generate text-based patterns, determining palindromes, finding the maximum value in a list, removing duplicates, generating card decks, and creating weekly calendars based on given dates. The tasks aim to strengthen algorithmic thinking and familiarize users with Python syntax and functionalities.
This document outlines a series of exercises designed to teach the fundamentals of Python programming. It includes tasks such as drawing triangles, checking for palindromes, finding the maximum in a list, eliminating duplicates, and creating a simple calendar. These exercises are intended for beginners to enhance their programming skills in Python.
This document introduces a hands-on programming activity aimed at implementing a Python class named 'Voiture' that simulates a car's behavior. The class initializes with default attributes, including brand, color, driver, and speed. It provides methods to designate or change the driver, modify the speed through acceleration or deceleration, and display the car's properties. The exercise enforces logical constraints, like requiring a driver before allowing speed changes, to reinforce programming concepts. Examples demonstrate the class functionality and explore different use cases.
This document outlines an activity for creating a Python class named Voiture that simulates the behavior of a car. It describes default attributes, methods for modifying the driver and speed, and includes examples of class usage. The activity focuses on understanding object-oriented programming principles in Python.
This document provides a structured overview of Python classes, covering their definition, syntax, usage of attributes and methods, object instantiation, constructors and destructors, modular programming, inheritance (single and multiple), method overloading, and handling collections of objects. Key examples and coding demonstrations illustrate how to design classes, apply inheritance hierarchies, and manage complex object interactions efficiently in Python.
This document outlines the fundamentals of classes in Python, including their structure, attributes, methods, constructors, and destructors. It provides definitions, syntax, and examples to facilitate understanding and practical application in coding. The content is designed for students learning object-oriented programming principles.
This document introduces Python programming via a four-module curriculum. The content covers fundamental concepts like control structures, functions, and sequences, while also addressing syntax rules and data types. Practical Python examples, including input handling, operators, and loops, are provided. Advanced topics like lambda functions and slicing operations are also tackled to build a foundational understanding of Python programming.
This document provides an introduction to Python programming, covering basic concepts, control structures, functions, and sequences. It includes information on installation, data types, and variable assignments. The course also discusses Python's features and its application in various fields.
This document outlines a practical exercise in handling candidate records for a competition stored in a text file. It requires the definition of several functions to manage data entry and selection based on specific criteria. The tasks include filling data, creating filtered files, and implementing deletion criteria for candidates over a certain age.
This document covers the core Python sequence data types, including strings, lists, and tuples. It explains their characteristics, operations, and methods, such as slicing, concatenation, and specific usage scenarios like immutability for strings and tuples. Lists are showcased for their mutability, while tuples are highlighted for their immutability and efficient resource usage. Examples and code snippets provide students with practical implementations of these principles.
This document provides an introduction to sequences in Python, detailing the types of sequences, particularly strings, lists, and tuples. It highlights operations on strings, including common functions and methods. Practical examples illustrate how to manipulate strings through various functions.























