Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def three_number_sum(valu): #defines the function and a parameter
- k=int(valu[0]) + int(valu[1]) + int(valu[2]) #converts the argument to int and sum them up
- print(k)
- valu = "456"
- three_number_sum(valu) #call the function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement