Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: importing a list of numbers into python script
Post: RE: importing a list of numbers into python script

To Bowlofred,Intr0spective, Buran and Snippsat. I thank you all for trying to help this newby of many years. I tried your various solutions with disappointing outcomes. I can't exclude that the poss...
barrypyth General Coding Help 8 4,582 Aug-22-2020, 09:10 PM
    Thread: importing a list of numbers into python script
Post: RE: importing a list of numbers into python script

Thank you again Bolofred. The split operation seems to have done the trick with len returning 5. I have attempted to put the 5 numbers into a list with list = [s]. When s is printed we get is 200, ...
barrypyth General Coding Help 8 4,582 Aug-21-2020, 07:59 AM
    Thread: importing a list of numbers into python script
Post: RE: importing a list of numbers into python script

Thank you Bowlofred. In the interim between posting my problem I tried putting square brackets around my list in the file to be imported. If I then used with open('movedata', 'r') as f: d= f.readlin...
barrypyth General Coding Help 8 4,582 Aug-20-2020, 11:41 PM
    Thread: importing a list of numbers into python script
Post: importing a list of numbers into python script

I have created in my PYTHON directory a file named movedata containing the following list of numbers 100, -100, 200, -200, 200 with the aim of importing the data into a file called list such that I ...
barrypyth General Coding Help 8 4,582 Aug-20-2020, 09:02 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020