Skip to content

Commit b9649aa

Browse files
authored
Create CondingBatExercicios.py
1 parent a622d7b commit b9649aa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CondingBatExercicios.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'''
2+
site para treinar python
3+
'''
4+
5+
'''
6+
exercício: list-2 (counts_evens)
7+
https://codingbat.com/prob/p189616
8+
9+
def count_evens(nums):
10+
cont = 0
11+
for x in range(len(nums)):
12+
if nums[x] %2 == 0:
13+
cont += 1
14+
return cont
15+
'''

0 commit comments

Comments
 (0)