Skip to content

Commit 676af1b

Browse files
authored
Added a solution in Python
1 parent 98062fc commit 676af1b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Vectors/(GEEKSFORGEEKS)max and min element of array.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,16 @@ int main() {
3737
cout<<bout<<endl;
3838
}
3939
return 0;
40-
}
40+
}
41+
42+
43+
44+
45+
____________________________________________________________In Python______________________________________________________
46+
# initializing list
47+
test_list = [2, 1, 6, 7, 10]
48+
49+
print("The original list is : " + str(test_list))
50+
# printing result
51+
print("The Smallest: " ,min(test_list))
52+
print("The Largest : " , max(test_list))

0 commit comments

Comments
 (0)