Question: Python 3.x help: I have basic text files that I need to read from that look exactly like this: What I want to do is

Python 3.x help:

I have basic text files that I need to read from that look exactly like this:

Python 3.x help: I have basic text files that I need to

What I want to do is take this data and do this:

read from that look exactly like this: What I want to do

It is important to note that I can only grow five different fruits: firefruits, waterfruits, grassfruits, joltfruits and megafruit o when it goes F for firefruit, W for waterfruit tree etc. I need to take that data and then put it into an array, that sort of looks like this:

is take this data and do this: It is important to note

so the first line of data in the file is a number that tells you the dimensions of the array, the second line from the file gives you the position of the Firefruit, third line will be Waterfruits, the forth line grass fruits, fifth line joltfruits, and the sixth line if it has any megafruits.

Xpokefruit palletfarm-Notepa fruit saffrcnfarm - Notepad pokefruit.celadonfarm-Notepad Fildil a Vies Help ldi Formal View Help File Edit Fermat View Help 0,2 2,0 4,2 2,4 0,e 0,3 3,a 3,3 30,16 32,49 34,18 34,32 36,37 33,33 33,37 17,18 42,76 19,21 23,21

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 Databases Questions!