[Tutor] Facing problem in printing a large number of points for my problem

David L Neil PyTutor at DancesWithMice.info
Fri Feb 28 17:21:25 EST 2020


On 29/02/20 4:52 AM, SATYABRATA DATTA wrote:
> I previously explained my problem that I want to print each output to
> specific .txt file and than repeatedly do it for several points and even if
> there some error which generally stops the program at some midway , can't
> happen in this case
> 
> For this I have used the simple line which is giving each numbered output
> to specific folder
> for %i in (1,5) do python.exe test_model.py > tests/TestModel_%i.txt
> 
> But I am getting only 1 and 5 as output in the above example.
> So I need to print nearly 100 s of such i by such simple command without
> using additional for loops
> I think here I can get a suitable answer

Would it be reasonable to finish one conversation ("previously 
explained") before starting another? How do we know if that is solved? 
...if we are actually helping? ...if you are learning anything?
-- 
Regards =dn


More information about the Tutor mailing list