Skip to content

Commit 810782b

Browse files
committed
feat: Find he greatest number in Lists
1 parent a497291 commit 810782b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

greaternumberinlists.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
list =[3,5,6,7,17]
2+
max_num=list[0]
3+
for num in range(1,len(list)):
4+
if list[num]> max_num:
5+
max_num=list[num]
6+
print max_num

0 commit comments

Comments
 (0)