David

- Code: Select all
`def input_data():`

number = int(input("Please enter a number"))

return number

def process_data(number):

divisible = False

if number //7 and number%7 < 0:

divisible = True

print("Number is divisible")

else:

print("Number is not divisible")

return divisible

def output_data(divisible):

print("Answer: {0}".format(divisible))

def main():

number = input_data()

calculation = process_data(number)

output_data(answer)