Python-TheNoTheoryGuide
Python-TheNoTheoryGuide copied to clipboard
Subtracted 2 instead of 3 in taking multiple arguments functions example
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)