Python-TheNoTheoryGuide icon indicating copy to clipboard operation
Python-TheNoTheoryGuide copied to clipboard

Subtracted 2 instead of 3 in taking multiple arguments functions example

Open faheem77 opened this issue 5 years ago • 0 comments

Multiple arguments

def add_sub(add_two_to_this, sub_two_from_this): print ("Added 2 to : " + str(add_two_to_this)) print ("Answer: " + str(int(add_two_to_this)+2))

print ("Subtracted 3 from : " + str(sub_two_from_this))
print ("Answer: " + str(int(sub_two_from_this)-2))

add_sub (45, "67") add_sub ("-156745", 12131)

faheem77 avatar Jan 20 '20 07:01 faheem77