Last answered:

25 Apr 2023

Posted on:

24 Apr 2023

0

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)
Posted on:

24 Apr 2023

0

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

Instructor
Posted on:

25 Apr 2023

0

Hi Turki!
Thanks for reaching out.


Thanks for sharing this piece of information with the Community!


Best,
Tsvetelin

Submit an answer