[Tutor] Occurrence of number 2 in a range from 1 to 100

Steven D'Aprano steve at pearwood.info
Sun Dec 1 10:14:33 CET 2013


On Sun, Dec 01, 2013 at 11:20:02AM +0530, Reuben wrote:
> Hi,
> 
> How can we write a logic for detecting the number 2 in  range from 1 to 100

2 in range(1, 101)


-- 
Steven


More information about the Tutor mailing list