Ask Your Question

quick beginner question

asked 2020-01-14 05:22:27 +0200

jkim0231 gravatar image

updated 2020-01-17 01:19:11 +0200

slelievre gravatar image

I see in tutorials that spaces are sometimes used although it doesn't seem to affect the functionality.

For instance, instead of x^2+3*x, it would be written as x^2 + 3*x.

Is this simply for viewing convenience?

Is there anything about using spaces that a beginner should be aware of? (no programming exp)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-17 01:21:56 +0200

slelievre gravatar image

This follows the Python style guide, also known as "Python enhancement proposal 8" or "PEP8".

Its goal is to make things easier to read.

edit flag offensive delete link more


ahh understood. Thank you

jkim0231 gravatar imagejkim0231 ( 2020-01-21 08:18:22 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2020-01-14 05:22:27 +0200

Seen: 321 times

Last updated: Jan 17 '20