Skip to content

Commit d9f7bfb

Browse files
authored
Added a solution using python
1 parent 98062fc commit d9f7bfb

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

Vectors/(GEEKSFORGEEKS)display the largest element of array.cpp

+16-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,19 @@ int main() {
3131

3232
}
3333
return 0;
34-
}
34+
}
35+
36+
37+
38+
39+
40+
41+
__________________________________________________________In Python____________________________________________________________
42+
43+
# initializing list
44+
test_list = [2, 1, 6, 7, 10]
45+
46+
print("The original list is : " + str(test_list))
47+
# printing result
48+
49+
print("The Largest : " , max(test_list))

0 commit comments

Comments
 (0)