Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: List Won't Write in Text File
Post: RE: List Won't Write in Text File

Thank you so very much! After a little tweaking I got it to work. I am very new to programming, and took a long break from Python to work with another language/program, and am still not too used to us...
IILawrenceII General Coding Help 4 2,141 Jul-17-2020, 10:45 PM
    Thread: List Won't Write in Text File
Post: List Won't Write in Text File

import time global list list = [] #####This is not the final list, but a list where you add everything to be sorted def add_to_list(): #####This should loop until you decide you are ready ...
IILawrenceII General Coding Help 4 2,141 Jul-17-2020, 08:40 PM
    Thread: Importing acting weird
Post: RE: Importing acting weird

Now I have another problem. I moved all the functions to the "mainTest.py" module. Here is what happens. def function1(): listName = [0,0,0,0] return listName list1 = function1()Error:er...
IILawrenceII General Coding Help 3 1,988 Jan-24-2020, 08:04 PM
    Thread: Importing acting weird
Post: Importing acting weird

I'm trying to call functions from my "functions.py" module to my "mainTest.py" module. Here is basically what I write: from functions import function1 list1 = function1() #function1() is set to re...
IILawrenceII General Coding Help 3 1,988 Jan-24-2020, 07:43 PM
    Thread: Importing variables from another file
Post: RE: Importing variables from another file

I redid all the file names and saved them into a new folder and that seemed to work. Now it would seem my text based combat test actually works. Now I have to create random encounters and make the s...
IILawrenceII General Coding Help 7 10,007 Jan-18-2020, 12:31 PM
    Thread: Importing variables from another file
Post: RE: Importing variables from another file

It says module doesn't exist, though I have checked the names etc and everything is exactly the way you have suggested. I don't understand what is not working. All files are in the same folder. They'...
IILawrenceII General Coding Help 7 10,007 Jan-18-2020, 11:09 AM
    Thread: Importing variables from another file
Post: RE: Importing variables from another file

Importing doesn't seem to work. How do I read the files and use the data in the program?
IILawrenceII General Coding Help 7 10,007 Jan-17-2020, 09:45 PM
    Thread: Importing variables from another file
Post: Importing variables from another file

I've been googling this problem for a while now and nothing seems to work. Here's my problem: I have variables in 4 different files. I want these variables to be read by my main file. I started pro...
IILawrenceII General Coding Help 7 10,007 Jan-17-2020, 08:32 PM

User Panel Messages

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