Re: Silly (maybe) question re imported module(s)

2023-05-19 Thread Alan Gauld
On 19/05/2023 19:46, Grizzy Adams wrote: > Tried that > RESTART: D:\Shades\Tools\Python\Temp\cube.py cubes() > Traceback (most recent call last): > File "", line 1, in > cubes() > TypeError: 'list' object is not callable Ah, now I understand. cubes is

Re: Silly (maybe) question re imported module(s)

2023-05-19 Thread Alan Gauld
On 19/05/2023 13:36, Grizzy Adams wrote: >> Looks like you are using IDLE? > > Yes > > > From consol > import cube cubes > Traceback (most recent call last): > File "", line 1, in > cubes > NameError: name 'cubes' is not defined You imported cube but tried to use cubes. I'm

Re: Silly (maybe) question re imported module(s)

2023-05-19 Thread Grizzy Adams via Python-list
Friday, May 19, 2023 at 12:25, Barry Scott wrote: Re: Silly (maybe) question re impor (at least in part) > > >> On 19 May 2023, at 07:44, Grizzy Adams via Python-list >> wrote: >> >> Morning All >> >> I'm working through the tutorial and running / saving work that I wish to >> keep >> and b

Re: Silly (maybe) question re imported module(s)

2023-05-19 Thread Barry Scott
> On 19 May 2023, at 07:44, Grizzy Adams via Python-list > wrote: > > Morning All > > I'm working through the tutorial and running / saving work that I wish to > keep > and build on, most times I can save and (re)import later with no difference > to > when typed in console or editor and

Re: Silly (maybe) question re imported module(s)

2023-05-19 Thread Alan Gauld
On 19/05/2023 07:44, Grizzy Adams via Python-list wrote: > when typed in console or editor and run with F5 (which saves before it can > run) > > But sometimes saved work (albeit small) when imported does not work any longer Looks like you are using IDLE? If so, it's possible that in the origin

Silly (maybe) question re imported module(s)

2023-05-18 Thread Grizzy Adams via Python-list
Morning All I'm working through the tutorial and running / saving work that I wish to keep and build on, most times I can save and (re)import later with no difference to when typed in console or editor and run with F5 (which saves before it can run) But sometimes saved work (albeit small) whe