I am the Python newbie.
I would like to make the code well commented.
For example, in C I can naturally write a single-line comment for every term of an expression:
int hello_world_length =
5 + // length of "Hello"
1 + // space between words
5; // length of "World"
How can I write the same statement in Python?
The code I have tried:
hello_world_length =
5 + # length of "Hello"
1 + # space between words
5 # length of "World"
hello_world_length =
5 + # length of "Hello"
1 + # space between words
5 # length of "World"
hello_world_length = \
5 + # length of "Hello" \
1 + # space between words \
5 # length of "World"
Neither of the above works.
I have read the Python tutorial but didn't find the solution.