Task 1 in Practical challenge - Part 6
The task does not specify that the numbers cannot be equal. Thus the part of the condition in "while" about num1 == num2 should not be there.
Instead, it should be an elif later.
upd. Upon checking the case with two equal numbers, the simple
if num1 > num2:
for i in range(num2, num1 + 1):
print(i, end = " ")
else:
for i in range(num1, num2 + 1):
print(i, end = " ")
will be enough.
Task 4 in Practical challenge - Part 6
The "isdigit" method does not recognize negative numbers. Would be great if that was mentioned during the explanation
Task 10 in Practical challenge - Part 6
The task specifies that we need to list all the evens and odds between 1 (!) and 100.
In the solution provided,
for i in range (n+1),
no lower limit is provided, i.e., the results will start at 0. Which is not what the task is.
The line should be:
for i in range (1, n+1)
to exclude 0