Aug-18-2021, 05:15 PM
Well,
I'm familiar with functions (know what they do but never used them before) as far as I understand they(functions) would do exactly the same thing as what the indentations do.
Code with indentations is easy to read (for me),
with functions, it becomes complicated, especially for people with minimal knowledge of python (like me) who do not want to complicate things. Not now.
I'm processing very similar files.
They all have a line that tells me which code to use for which file.
The line is "Loops : xx"
where 'xx' is a number of loops. One type of file has a number of loops always more than '1',
and the other is always '1' or less.
I thought I will open each file to check the Loop count, if a file has more than '1' loop I'll process it with one code.
If the number of loops is '1' or '0' I'll process it with a different code.
My thinking is based on what I know about Python, it is very limited...
Thank you.
I'm familiar with functions (know what they do but never used them before) as far as I understand they(functions) would do exactly the same thing as what the indentations do.
Code with indentations is easy to read (for me),
with functions, it becomes complicated, especially for people with minimal knowledge of python (like me) who do not want to complicate things. Not now.
I'm processing very similar files.
They all have a line that tells me which code to use for which file.
The line is "Loops : xx"
where 'xx' is a number of loops. One type of file has a number of loops always more than '1',
and the other is always '1' or less.
I thought I will open each file to check the Loop count, if a file has more than '1' loop I'll process it with one code.
If the number of loops is '1' or '0' I'll process it with a different code.
My thinking is based on what I know about Python, it is very limited...
Thank you.