Top answers


What is the molar concentration of a solution of pure water?

Concentration (mol/dm 3 ) = (density (g/dm 3 )) / (molecular mass (g/mol)) The density of water = 1000 g/dm 3 The molecular mass of H 2 O = (2 1 g/mol) + (1 16 g/mol) = 18 g/mol Concentration mol/dm 3 = 1000...
JD
21667 Views

What does __init__ mean?

There are more than one use for the expression init in Python. If you see a file named init .py in a directory, it means that directory should be treated as a package (collections of variable, function and c...
CW
Answered by Callum W. • Python tutor
2923 Views

What are docstrings and how do I use them to improve my code readability?

Docstrings are strings placed at the beginning of classes, functions, or .py files. They are implemented using three single quotes at the beginning and end. For example: def Addition(a,b): ''' This function ...
CW
Answered by Callum W. • Python tutor
2541 Views

How do I start writing a personal statement?

I'd recommend starting by writing down all the achievements/qualifications that you think could be relevant to a personal statement. Then make a second sheet filled with all the reasons why you want to do th...
JB
2966 Views

Make button that says how many times it has been clicked.

<button id="count" onclick="showCount()">0</button> var x = 0; function showCount() { x++; document.getElementById("count").innerHTML=x; }
PW
Answered by Piotr W. • Javascript tutor
1524 Views