We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b4b0a9 commit c4e3f4aCopy full SHA for c4e3f4a
practice_2/maria_iter.py
@@ -1,5 +1,8 @@
1
from examples_2.utils import print_stars
2
3
+print_stars()
4
+print("Dividers practice")
5
+
6
def dividers(x):
7
result = [1]
8
for i in xrange(2, x/2+1):
@@ -9,14 +12,15 @@ def dividers(x):
9
12
10
13
number = input("Please, enter some natural number > ")
11
14
-print_stars()
-
15
if isinstance(number, int) and number > 0:
16
print("{} dividers are: {}".format(number, dividers(number)))
17
else:
18
print("Entered value is not a natural number")
19
20
21
22
+print("Booleans practice")
23
24
def to_bool(lst):
25
booled_list = []
26
for el in lst:
0 commit comments