Ask Your Question
1

quick beginner question

asked 5 years ago

jkim0231 gravatar image

updated 5 years ago

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)

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 5 years ago

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.

Preview: (hide)
link

Comments

ahh understood. Thank you

jkim0231 gravatar imagejkim0231 ( 5 years ago )

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: 5 years ago

Seen: 733 times

Last updated: Jan 17 '20