Ask Your Question
1

quick beginner question

asked 2020-01-13 22:22:27 -0500

jkim0231 gravatar image

updated 2020-01-16 18:19:11 -0500

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-16 18:21:56 -0500

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 01:18:22 -0500 )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-13 22:22:27 -0500

Seen: 62 times

Last updated: Jan 16