8 odpowiedzi
+ 4
Hello World better in this way
#making a function (this is the main code)
def tfs(n):
    if n%3==0 and n%5==0 and n%7==0:
        return True;
    else:
        return False
#testing it out
print(tfs(105))
print(tfs(67))
+ 2
Daniel Fernández Hidalgo, how about this? :^)
#making a function (this is the main code)
def tfs(n):
    return n%3 == n%5 == n%7 == 0
#testing it out
print(tfs(105))
print(tfs(67))
+ 2
n = int(input())
nd = any(n % i for i in (3, 5, 7))
print("{}divisible".format("not " if nd else ""))
https://code.sololearn.com/csC6ZNuwnpBq/?ref=app
+ 1
The best Edgar ;-)
0
if int(input(" ")) % 105 == 0 : 
    print("divisible")
0
num=int(input("enter a number"))
if num%3==0 and num%7==0 and num%5==0:
    print("divisible by 3 5 and 7")



