diff --git a/discussion2.py b/discussion2.py new file mode 100644 index 0000000..4c16dd8 --- /dev/null +++ b/discussion2.py @@ -0,0 +1,8 @@ +# In this example, I use def to define the function name (names_of_fruits), +# the parameter is (fruits)and the argument is ("name of fruit is: % s" % fruits) + +def names_of_fruits(fruits): + print("name of fruit is: % s" % fruits) + +names_of_fruits('Apple') + \ No newline at end of file