Python Practice 2 Solution | Python Tutorials For Absolute Beginners In Hindi #106

Code as described/written in the video

apples = int(input("Enter the number of apples\n"))
mn = int(input("Enter the minimum number to check\n"))
mx = int(input("Enter the maximum number to check\n"))

for i in range(mn, mx+1):
    if apples%i == 0:
        print(f"{i} is a divisor of {apples}")
    else:
        print(f"{i} is not a divisor of {apples}")



Be the first person to comment!

Comments(0)