Advice to all Python users: learn JavaScript
screw you im gonna learn python so i can learn gdscript ๐ค๐ค๐ค๐ค๐ฟ๐ฟ๐ฟ๐ฟ๐ฟ๐ฟ๐ฟ๐ฎ๐ฎ๐ข๐ฎ
better yet, im gonna start using Lua (and Luau [๐ ฑoblox moment]) to code ๐ฆ๐ฆ๐ฆ๐ฆ
Any real reason other than making front-end?
Frontend yes but also for frameworks like svelte, express, nuxt. And python really sucks ngl compared to js. JavaScript is just a lot more... Capable?
Python has Django framework, Flask for simplicity. capable in what way though? I donโt think thereโs anything that JS can do but py cant
webservers like express are much faster than flask. also frameworks like nuxtjs/svelte/etc with minimal api functions are pretty cool.
ewwww no
Why not
python is better, you can make better malware :P
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.
What version is this?
๐คทโโ๏ธ https://www.futurelearn.com/info/courses/programming-101/0/steps/48649#:~:text=Python%20doesn't%20mind%20whether,should%20always%20use%20four%20spaces.
PEP 8 guidelines say otherwise
It is just a guideline.
Yes, but please use it, it makes it easier for you and other devs to maintain, and just makes your code look nicer.
https://tio.run/##bZA9C8JADIZn/RWhiwri4ubi7KA4CM5pG2lQc8clfv7581pLrdBMGZ73yYd/WeVkGSOf4BButBpDKh9YbJptpCQxBRbYNxxgIJkYoIJa4KLp2ECJrrrIZk34z9RzFU6U1ZIRlN@k65bvkJ1LncsvdB1UjVpsy08wzBVQSlCPxU/VIXimeq8KvScZtvUGDxghHcvf8zt5L3Gs0OhOYQ4PgtLVPynSb9KkGD8
completed that mission, https://www.youtube.com/watch?v=bcSDtpfMP68