Check Divisibility
Complete the code on the editor to answer to the questions if 583 is divisible by 11 and 911 is divisible by 11.
Hint: Check the "modulo" operator
Solution 1
divisible_by_11 = 11
is_583_divisible_by_11 = None
is_911_divisible_by_11 = None
number_583 = 583
if number_583 % divisible_by_11 == 0:
is_583_divisible_by_11 = True
else:
is_583_divisible_by_11 = False
is_911_divisible_by_11 = None
number_911 = 911
if number_911 % divisible_by_11 == 0:
is_911_divisible_by_11 = True
else:
is_911_divisible_by_11 = False