Les générateurs ! un must

En L1, j'avais déjà utilisé les générateurs pour illustrer les algorithmes → comprendre les algo de base

Comment marche un générateur ? 

Les générateurs en action : → Learn

Go back to : todo list

 Learn by yourself : 📋Maitriser les listes de tâches



Django projet

Rappels : 

SQLite3
    Let's start ! 
Python : Learn by yourself
    Let's start !


Django : lien


Django model/ shell



Projet Airport : lien





Projets : Django

0° Blog


1°🛩️Airport


Objectif : intégrations des passagers aux vols.

------------------- no time left ! 

II partie


3° SPA



Python

Evaluez votre niveau en python ! 🥷🏼python !




Pour info : 

🪛 est équivalent à : 
🚀



Autre exemple

  1. import time

  2. def timer(f):
  3.     def wrapper(*args, **kwargs):
  4.         start = time.time()
  5.         result = f(*args, **kwargs)
  6.         end = time.time()
  7.         print(f"Temps : {end - start:.4f}s")
  8.         return result
  9.     return wrapper

  10. @timer
  11. def slow():
  12.     time.sleep(1)

  13. slow()
#Temps : 1.0006s


Learn by yourself



@debug def add(a, b): ... ↓ équivaut à ↓ def add(a, b): ... add = debug(add)
@debug def add(a, b): ... ↓ équivaut à ↓ def add(a, b): ... add = debug(add)@debug
def add(a, b): ... ↓ équivaut à ↓ def add(a, b): ... add = debug(add)

DS : code correction

Architecture

  • Back-end (API): The API lives in the API-QCM repository. It serves the QCM endpoints (questions, categories, submit). By default the frontend expects the API at http://localhost:3000.

https://github.com/dupontdenis/API-QCM.git


  • Front-end : Static files in this repository (index.html, js/, css/) implement the UI that calls the API.

https://github.com/dupontdenis/publicQcm-cat.git

Virtual en action !

 

How to : virtual

API examples

🍕Projet API pizza

📚Projet API Books

🧑🏽‍🏫Projet API Teacher