Another and simple way to re-write the code
def substract_bc (a, b, c):
result = a - b * c
print ('a', a)
print ('b', b)
print ('c', c)
return result
------------OR ANOTHER CLEAR CODE SO YOU FRIEND CAN UNDERSTAND IT---------------
def substract_bc (a, b, c):
result = a - b * c
print ('a equal', a)
print ('b equal', b)
print ('c equal', c)
return result
substract_bc (10,3,2)
@TAlshaber
2 answers ( 0 marked as helpful)
Another Case study that might help you to understand this lesson:
/*
def family_name (a,b,c):
result = a+b+c
print ('a equal', 'a')
print ('b equal', 'b')
print ('c equal', 'c')
return result
family_name ('Turki', ' M',' Alshaber')
*/
@TAlshaber
Hi Turki!
Thanks for reaching out.
Thanks for sharing this piece of information with the Community!
Best,
Tsvetelin