ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ns_dev/Python/NinoCode/learning/Mark/power2.py
Revision: 8
Committed: Sat May 5 04:21:19 2012 UTC (13 years, 10 months ago) by ninoborges
Content type: text/x-python
File size: 141 byte(s)
Log Message:
Initial Import

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"