-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblankmodule.py
More file actions
50 lines (44 loc) · 1.18 KB
/
blankmodule.py
File metadata and controls
50 lines (44 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created: 01/05/2019
# Copyright: (c) User 2019
# Licence: <your licence>
#-------------------------------------------------------------------------------
def is_divisible(x, y):
""" Test if x is exactly divisible by y """
if x % y == 0:
#return True
print(True)
else:
#return False
print(False)
print(is_divisible(4, 2))
print(is_divisible(5, 2))
def is_divisible(x, y):
""" Test if x is exactly divisible by y """
if x % y == 0:
return "return ok2"
print("print ok2")
else:
return "return not ok2"
print("print not ok2")
print(is_divisible(4, 2))
print(is_divisible(5, 2))
def is_divisible(x, y):
b= x % y == 0
return b # Test if x is exactly divisible by y
if is_divisible(x, y) == True:
return "return ok 3"
print("print ok 3")
else:
return "return not ok 3"
print("print not ok 3")
print(is_divisible(4, 2))
print(is_divisible(5, 2))
def is_divisible(x, y):
b= x % y == 0
return b # Test if x is exactly divisible by y
print(is_divisible(4, 2))
print(is_divisible(5, 2))
def is_divisible(x, y):
return x % y == 0
print(is_divisible(4, 2))
print(is_divisible(5, 2))