I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python.
Program input is physical characteristic, measured several times (i.e list of floats). The program calculates average value and square average deviation for the list. After this, it makes table of intermediate calculations (I need to record this table in the laboratory work) and prints it. Then, using square average deviations, the program checks for data that are suspect for a measurement error. If wrong data exist, the programm removes it and recalculate and reprint average value, square average deviation and table. After this, the program calculates and prints random and relative measurement error and also prints answer.
The program works, but I am worrying about its design and structure.
I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python. The program works, but I am worrying about its design and structure.
I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python.
Program input is physical characteristic, measured several times (i.e list of floats). The program calculates average value and square average deviation for the list. After this, it makes table of intermediate calculations (I need to record this table in the laboratory work) and prints it. Then, using square average deviations, the program checks for data that are suspect for a measurement error. If wrong data exist, the programm removes it and recalculate and reprint average value, square average deviation and table. After this, the program calculates and prints random and relative measurement error and also prints answer.
The program works, but I am worrying about its design and structure.
I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python. ProgramThe program works, but I am worrying about program'sits design and structure.
- Is it a common practice for Python programmers to first place import statements, then some functions and then main part of program? Is there a more readable programmprogram code structure?
- Are multi-line comments (i.e.
""" """
multiline comments is standart) a standard ofde facto Python programmingde facto
or are there aren'tare common standart of multilinestandards for multi-line commenting? - AreIs there a common code style for Python community for function's comments?
I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python. Program works, but I am worrying about program's design and structure.
- Is it a common practice for Python programmers to first place import statements, then some functions and then main part of program? Is there more readable programm code structure?
""" """
multiline comments is standart of Python programmingde facto
or there aren't common standart of multiline commenting?- Are there common code style for Python community for function's comments?
I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python. The program works, but I am worrying about its design and structure.
- Is it a common practice for Python programmers to first place import statements, then some functions and then main part of program? Is there a more readable program code structure?
- Are multi-line comments (i.e.
""" """
) a standard ofde facto Python programming or are there are common standards for multi-line commenting? - Is there a common code style for Python community for function's comments?
I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python. Program works, but I am worrying about program's design and structure.
- Is it a common practice for Python programmers to first place import statements, then some functions and then main part of program? Is there more readable programm code structure?
""" """
multiline comments is standart of Python programmingde facto
or there aren't common standart of multiline commenting?- Are there common code style for Python community for function's comments?
Code:
I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python. Program works, but I am worrying about program's design.
I am new in Python, but I have laboratory work with some routine computing, so I have decided do these calculations in Python. Program works, but I am worrying about program's design and structure.
- Is it a common practice for Python programmers to first place import statements, then some functions and then main part of program? Is there more readable programm code structure?
""" """
multiline comments is standart of Python programmingde facto
or there aren't common standart of multiline commenting?- Are there common code style for Python community for function's comments?
Code:
- 145.5k
- 22
- 190
- 479