Posts by kvojps • 23 points
2 posts
-
0
votes2
answers693
viewsQ: How to generate a range from A to B-1 in Python?
Here is my code to print if a number is prime or not, but it is necessary that the number printed by the user is not included in the block if, how could I do to establish an interval in the for in…
-
2
votes1
answer45
viewsQ: Create a range within a for in range() loop?
In a tuple of items, for example: for x in range(2,numero+1): 1) Suppose the variable numero has been defined before as 7. Thus, how do I not include the 7 in this tuple, wanting to go through all…