Skip to main content
Search
Search This Blog
learn coding
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
September 17, 2022
if else statement python practice problems with solution pdf
if else statement python practice problems with solution pdf
if else
problem 1
Next, after the ‘for’ loop has concluded, we return the ‘count’ variable that kept track of all elements greater than 30.
solution
def
greater_than_30
(
numbers
):
count =
0
for
n
in
numbers:
if
n>
30
: count+=
1
return
count
Comments
Popular Posts
September 25, 2022
automate the boring stuff with python book pdf
September 23, 2022
intro to python book (for computer science and data science)pdf download
Comments
Post a Comment