-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
33 lines (25 loc) · 799 Bytes
/
Copy pathmain.py
File metadata and controls
33 lines (25 loc) · 799 Bytes
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
def plusgrand(a: int, b: int) -> int:
"""
:param a: nombre 1
:param b: nombre 2
:return: réponse
"""
return max(a, b)
def seuil(a : int, b : int = 10) -> bool:
return a>b
def biggestNumber(a : list) -> int:
return max(a)
def seuilListe(a : list, seuil : int = 3) -> int:
listinf = []
for i in a:
if i < seuil:
listinf.append(i)
return (listinf)
def dicoliste (chain : str = "Affichage", **kwargs) :
for key , values in kwargs.items() :
print(f"{chain} -> {key} : {values}")
print(plusgrand(52, 53))
print(seuil(15, 25))
print(biggestNumber([10, 15, 65, 32, 562]))
print(seuilListe([10, 15, 65, 32, 562], 90))
print(dicoliste("jaaj",a="Real", b="Python", c="Is", d="Great", e=125))