Created
January 4, 2016 00:53
-
-
Save Rimann91/9f815def028e0581c0b2 to your computer and use it in GitHub Desktop.
Printing all values
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Nitrogen = { | |
| 'Tree':[ | |
| ('Ainus cordata', 'Italian Alder'), | |
| ('Ainus incana', 'Gray Alder'), | |
| ('Maackia amurensis', 'Amur Maackia'), | |
| ('Robinia pseudoacacia', 'Black Locus'), | |
| ('Sophora japonica', 'Pagoda'), | |
| ], | |
| 'Shrub_large':[ | |
| ('Alnus rugosa', 'Speckeled Alder'), | |
| ('Alnus serrulata', 'Smooth Alder'), | |
| ('Amorsa fruticosa', 'False Indigo'), | |
| ('Caragana arborascens', 'Siberian Pea Shrub'), | |
| ('Caragana frutex', 'Russian Pea Shrub'), | |
| ('Cercocarpus montanus', 'Mountain Mahogany'), | |
| ('Colutea arborescens', 'Bladder Senna'), | |
| ('Eleagnus commutata', 'Silverberry'), | |
| ('Eleagnus multiflora', 'Goumi'), | |
| ('Hippophae rhamnoides', 'Sea Buckthorn'), | |
| ('Lespedeza bicolar', 'Bush Clover'), | |
| ('Myrica cerifera', 'Wax Murtle'), | |
| ('Myrica pensulvanica', 'Bay Berry'), | |
| ('Prosopis glandulosa', 'Honeypod Mesquite'), | |
| ('Robinia hispida', 'Bristly Locust'), | |
| ('Robinia viscosa', 'Clammy Locust'), | |
| ('Shepherdia canadensis', 'Buffalo Berry'), | |
| ], | |
| 'Shrub_medium':[ | |
| ('Acacia angustissima', 'Prarie Acacia'), | |
| ('Acacia angustissima hirta', "Dwarf Prarie Acacia"), | |
| ('Amorpha canescens', 'Leadplant'), | |
| ('Amorpha nana', 'Fragrant Indigobush'), | |
| ('Caragana pygmaea', 'Pygmy Pea Shrub'), | |
| ('Ceanothus americanus', 'New Jersey Tea'), | |
| ('Comptonia peregrina', 'Sweet Fern'), | |
| ('Genista Pilosa', 'Silky Leaf Woodwaxen'), | |
| ('Genista tinctoria', "Dyer's Greenwood"), | |
| ('Hippophae Rhamnoides cv.', "Sea Buckthorn 'Dorana Dwarf'"), | |
| ('Indigofera Decora', 'Chinese Indigo'), | |
| ('Myrica gale', 'Sweet Gale'), | |
| ], | |
| }; | |
| for kind in Nitrogen: | |
| for specie in Nitrogen[kind]: | |
| print specie | |
| choice = str(raw_input('what kind of plant? ')) | |
| def whatkind(choice): | |
| if choice == 'trees': | |
| for kind in Nitrogen: | |
| for specie in Nitrogen[kind]: | |
| print "scientific: " + str(specie[0]) | |
| print "common: " + str(specie[1]) | |
| else: | |
| return false | |
| whatkind(choice) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment