Skip to main content
Code Review

Return to Question

Tweeted twitter.com/StackCodeReview/status/968294108254146561
Added description of what program does
Source Link

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.

Post Reopened by Mast , Sᴀᴍ Onᴇᴌᴀ , Malachi, Stephen Rauch, 200_success
update grammar, fix typos
Source Link

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?
Added more specifics
Source Link

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 programming de 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 programming de facto or there aren't common standart of multiline commenting?
  • Are there common code style for Python community for function's comments?

Code:

Post Closed as "Not suitable for this site" by πάντα ῥεῖ, t3chb0t, Stephen Rauch, Grajdeanu Alex, Sᴀᴍ Onᴇᴌᴀ
deleted 51 characters in body; edited tags; edited title
Source Link
200_success
  • 145.5k
  • 22
  • 190
  • 479
Loading
edited title
Link
Loading
Source Link
Loading
lang-py

AltStyle によって変換されたページ (->オリジナル) /