Bonjour , pouvez vous m'écrire un programme python qui calcule et affiche l image d un nombre par la fonction f:x--->3x-10 merci a ceux qui m aideront
Informatique
lucasmotier
Question
Bonjour , pouvez vous m'écrire un programme python qui calcule et affiche l image d un nombre par la fonction f:x--->3x-10
merci a ceux qui m aideront
merci a ceux qui m aideront
1 Réponse
-
1. Réponse vaison
Réponse :
Bonjour,
def f(x):
y=3*x-10
print("f("+str(x)+") =",y)
>>> f(0)
f(0) = -10
>>> f(1)
f(1) = -7
>>> f(8)
f(8) = 14
>>>