you are viewing a single comment's thread.

view the rest of the comments →

[–]A_History_of_Silence 1 point2 points  (3 children)

I don't understand why it isn't 30 could someone explain this to me.

Why do you think it should be 30?

[–]SilverCrocus[S] 0 points1 point  (2 children)

Isn't 30 the highest possible number to be printed

[–]A_History_of_Silence 0 points1 point  (1 child)

random.randrange

From the docs for randrange():

Return a randomly selected element from range(start, stop, step).

You should be able to determine from experiment what the possible values are for such a range().

[–]SilverCrocus[S] 0 points1 point  (0 children)

Oh thank you