# ==============================================================================
"""PASCAL : create Pascal's triangle (triangle of binomial terms)"""
# ==============================================================================
__author__  = "Christophe Schlick modified by Philippe Blasi"
__version__ = "1.0" # use 'grid' function from ezCLI to format table
__date__    = "2022-11-12"
__usage__   = """
User input : <n> (where n:int > 0)
App output: Grid containing Pascal's triangle up to rank n"""
# ==============================================================================
from ezCLI import *

# on récupère facto et bino dans l'un des exercices précédents
from A3B_bino import facto,bino

### ------------------------------------------------------------------------------
##def facto(n:int) -> int:
##  """return n! (iterative implementation)"""
##  pass
### ------------------------------------------------------------------------------
##def bino(n:int, p:int) -> int:
##  """return the binomial coefficient C(n,p)"""
##  pass
# ------------------------------------------------------------------------------
def pascal(n:int) -> str:
  """return a grid containing Pascal's triangle up to rank n"""
  pass # meme remplissage que multable
# ------------------------------------------------------------------------------
def parser(command:str) ->str:
  """parse 'command' as integer 'n' before calling 'pascal(n)'"""
  pass  # meme perser que multable
# ==============================================================================
if __name__ == "__main__":
  userloop(parser, "Enter value for <n>")
# ==============================================================================
