I have a program in which i have to name my projects by numbering them. Each project has different tasks in them. These tasks also should be named by numbering them. For example: In my program i have a field projnum and tasknum in my input file. this should repeat for the number of times I give in my python code.
The code that i am using is as below.
for n in range(6): projnum = n for y in range(2): tasknum = (2 * n) + y
So as per the code i should have 6 projects and each projects should have 2 tasks. And the numbering should be as follows.
Project0 has Task0 and Task1
Project1 has Task2 and Task3
Project2 has Task4 and Task5
Project3 has Task6 and Task7
Project4 has Task8 and Task9
Project5 has Task10 and Task11
But my code is giving the below result
Project0 has Task1 and Task1
Project1 has Task3 and Task3
Project2 has Task5 and Task5
Project3 has Task7 and Task7
Project4 has Task9 and Task9
Project5 has Task11 and Task11
Could someone please help me fix this code?