ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/learning/Mark/power2.py
Revision: 591
Committed: Tue Nov 3 22:45:12 2015 UTC (10 years, 4 months ago) by nino.borges
Content type: text/x-python
File size: 141 byte(s)
Log Message:
Moved dir out of main dir.

File Contents

# User Rev Content
1 ninoborges 8 L = [1, 2, 4, 8, 16, 32, 64]
2    
3     X = 5
4    
5     try:
6     print "it was found at location %d"% L.index(2**X)
7     except:
8     print "Sorry not found"