Initialer Import der Synology Scripts
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
def test(param1, param2="hello", param3="byebye"):
|
||||
print("Test function: ", param1, " - ", param2, " - ", param3)
|
||||
|
||||
|
||||
test("hello", param2="byebye", param3="end")
|
||||
|
||||
|
||||
def list_max(input_list):
|
||||
max_value = input_list[0]
|
||||
|
||||
for i in range(1, len(input_list)):
|
||||
if input_list[i] > max_value:
|
||||
max_value = input_list[i]
|
||||
|
||||
return max_value
|
||||
|
||||
|
||||
list1 = [-2, 1, 2, -10, 22, -10]
|
||||
list1_max = list_max(list1)
|
||||
print(list1_max)
|
||||
Reference in New Issue
Block a user