-
Notifications
You must be signed in to change notification settings - Fork 0
/
ennonce.py
38 lines (31 loc) · 1.86 KB
/
ennonce.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# --- DEVOIR INDIVIDUEL PYTHON ---
# TOUT EST À FAIRE EN POO, MERCI.
# ÉNONCÉ
# --- PARTIE 1 ---
# Créer un script python qui va afficher dans le terminal une phrase aléatoire,
# venant d'un tableau que vous aurez préalablement rempli de quelques citations par exemple
# /!\ En POO même s'il y a peu d'attributs/getters/setters à faire /!\
# --- PARTIE 2 ---
# Créer un script python qui va contenir un dictionnaire (par exemple une personne, avec des attributs comme l'âge, le prénom, le genre...)
# Retourner ce dictionnaire sous forme d'objet JSON dans le terminal (voir le package 'json' pour plus d'info)
# /!\ En POO également, vous devez initialiser le dictionnaire soit dans le constructeur soit avec un setter après instanciation de la classe /!\
# --- PARTIE 3 ---
# Créer un script python qui va récupérer les informations systèmes (voir les packages 'platform', 'cpuinfo', 'socket' et 'os' pour plus d'info)
# Avec le moteur de templating jinja, afficher dans un beau template HTML (avec du CSS dans un fichier CSS séparé) ces informations systèmes
# Évidemment, le tout en POO...
# /!\ Je demande pas le site de l'année, mais faites un effort sur le CSS svp /!\
# NOTATION
# Coefficient 0.5
# La note sera ajoutée à la note du projet python par binôme
# BARÈME (sur 10 points)
# 3 points sur la partie 1
# 3 points sur la partie 2
# 4 points sur la partie 3
# Je serai regardant sur la propreté du code, les commentaires, la POO et le respect des consignes
# Le "copy no jutsu" est évidemment interdit, je serai très regardant là-dessus aussi...
# LIVRABLE
# Deadline : 17h 16/03/2023, vous organisez votre journée comme vous le sentez.
# Livraison un dépôt git PUBLIC, mettez le lien de votre dépôt direct sur Teams dans le rendu de devoir.
# README PROPRE SVP
# Une fois terminé, vous pouvez retourner sur votre projet python.
# Bon courage ;-)