Ask Your Question
1

quick beginner question

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

jkim0231 gravatar image

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

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
2

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

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

Comments

ahh understood. Thank you

jkim0231 gravatar imagejkim0231 ( 2020-01-21 08:18:22 +0100 )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

Stats

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

Seen: 479 times

Last updated: Jan 17 '20