asked 35.1k views
2 votes
write a function, named dividable by 5, that takes a single number as an argument and that returns true, when the argument is dividable to 5 and false otherwise. you must write this function using a relational operator

asked
User Brrrr
by
7.6k points

1 Answer

1 vote

Answer:

def dividable_by_5(number):

return number % 5 == 0

print(dividable_by_5(15))

print(dividable_by_5(7))

Step-by-step explanation:

answered
User DavedCusack
by
8.3k points

Related questions

asked Jun 24, 2020 231k views
Jeudyx asked Jun 24, 2020
by Jeudyx
7.8k points
1 answer
1 vote
231k views
asked Jul 18, 2022 215k views
Jishnu Prathap asked Jul 18, 2022
by Jishnu Prathap
8.0k points
2 answers
0 votes
215k views