#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Administrateur
#
# Created:     03/12/2019
# Copyright:   (c) Administrateur 2019
# Licence:     <your licence>
#-------------------------------------------------------------------------------

def main():
    pass

if __name__ == '__main__':
    main()

from math import *
# impot math

x = 2.718
print("\n", type(x), "x=", x)

print("round(x,2) =", round(x,2))
# x = 2.71

print("round(x**3.1) =",round(x**3.1))
# x = 22, racine carrée

print("abs(1-x) =", abs(1-x))
# x = 1.718

print("floor(x) =", floor(x))
# x = 2  troncque

print("floor(1-x) =", floor(1-x))
# x = -2

print("floor(abs(1-x)) = ", floor(abs(1-x)), "\n")
# x = 1

print("round(exp(2), 3) = ", round(exp(2), 3))
#exposant

print("round(log(2), 2) = ", round(log(2), 2))
#logarithme neperien

print("round(sqrt(2), 3)) = ",round(sqrt(2), 3), "\n")
#squirt?

print(chr(75))
#qu'est ce que c'est?, charactère n° 75 en ASCII  => K

print(chr(109))
# c'est la lettre m en minuscule 109