Question: To import text file into python as dictionary First line of every paragraph as a key and lines under the plant name as values (Python)

To import text file into python as dictionary

First line of every paragraph as a key and lines under the plant name as values (Python) - Separated by and (Do not hardcode by using increment method) E.g. +4

Monstera Deliciosa (Key)

2018-11-03 18:21:26

Tropical/sub-Tropical plant

Leathery leaves, mid to dark green

Moist and well-draining soil

Semi-shade/full shade light requirements

Water only when top 2 inches of soil is dry

Intolerant to root rot

Propagate by cuttings in water

Strelitzia Nicolai (White Birds of Paradise) (Key)

2018-11-05 10:12:15

Semi-shade, full sun

Dark green leathery leaves

Like lots of water,but soil cannot be water-logged

Like to be root bound in pot

Alocasia Macrorrhizos (Key)

2019-01-03 15:29:10

Tropical asia

Moist and well-draining soil

Leaves and stem toxic upon ingestion

Semi-shade, full sun

Like lots of water, less susceptible to root rot

Susceptible to spider mites

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!