TelenkovDmitry hai 5 meses
pai
achega
e7698a41fc
Modificáronse 1 ficheiros con 14 adicións e 0 borrados
  1. 14 0
      courses/python_func/default_args.py

+ 14 - 0
courses/python_func/default_args.py

@@ -0,0 +1,14 @@
+
+def append_to_list(value, my_list = []):
+    my_list.append(value)
+    print(my_list)
+
+
+def main():
+    append_to_list(10)
+    append_to_list(25)
+    append_to_list(37)
+
+
+if __name__ == '__main__':
+    main()