Advice to all Python users: learn JavaScript

comments (single view)

Yeah but at least JS doesn't require indents

neither does python :P

example: def func():print('helloworld')

Also, indents have to be 4 spaces, can't be 2

they can be anything as long as they are consistent

I'm not sure what you're using but it isn't standard python

Python doesn't mind whether you use two spaces or four spaces (or any other number of spaces) as long as you are consistent. For example if you start off using four spaces for an indent, then you should always use four spaces.

See more replies

Honestly indenting makes the code looks better and more readable.

yes but its annoying that the indention is necessary

View all comments