GardenerList
Error(s), warning(s): Traceback (most recent call last):
File "764944447/source.py", line 52, in <module>
input("\nPress the enter key to exit.")
EOFError: EOF when reading a line
Garden is empty.
Press enter key to continue
Your garden has:
['Night Queen', 'Marigold', 'Jasmine', 'Rose', 'Daisy', 'China-rose']
Flower trees are:
Night Queen
Marigold
Jasmine
Rose
Daisy
China-rose
The fragrance will reign the neighborhood.
Do you have Sunflower in your garden?
No,I don't have any.
Slice example:
garden[ 0 : 4 ]
['Night Queen', 'Marigold', 'Jasmine', 'Rose']
You've just bought new plants.
Your garden has:
Night Queen
Marigold
Jasmine
Rose
Daisy
China-rose
Sunflower
Juhi
You just exchanged Marygold and China-Rose plants for Butea and Narcissus plants.
Your garden has: 8 plants
They are:
Narcissus
Night Queen
Jasmine
Rose
Daisy
China-rose
Juhi
Butea
After sort they are:
Butea
China-rose
Daisy
Jasmine
Juhi
Narcissus
Night Queen
Rose
Press the enter key to exit.
|
|