Answers for "apa itu duck typing python"

0

apa itu duck typing python

function calculate(a, b, c) => return (a+b)*c
 
example1 = calculate (1, 2, 3)
example2 = calculate ([1, 2, 3], [4, 5, 6], 2)
example3 = calculate ('apples ', 'and oranges, ', 3)
 
print to_string example1
print to_string example2
print to_string example3
Posted by: Guest on July-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language