Main differences between Python and Java
Python vs Java syntax etiquette
Appreciate the feedback, thank you (and happy cake day)
More on reddit.comjava or python?
What language is more advantageous, Java or Python?
Videos
Hi all, I'm dipping into learning Python after sort of hitting a wall with Java, and I'm already noticing some basic syntax overlap between the two. I'm still early enough in my learning to squash a habit before it starts - will my code be frowned upon when read by others if I use things like semicolons to end statements, double quotes, curly brackets, etc, that aren't necessary but still function the same? Or is this something that will be a project by project matter?
Java is so strict with syntax that it's still wild to me in Python to be doing the same things but with less code. As I'm sort of in both worlds at once it would make learning a lot easier if I can hang onto the Java syntax where I can, but I want to do this properly.
Appreciate the feedback, thank you (and happy cake day)
will my code be frowned upon when read by others if I use things like semicolons to end statements, double quotes, curly brackets, etc, that aren't necessary but still function the same?
Probably. Cluttering up your code with things that aren't necessary for the interpreter and aren't expected to be there by others reading your code will not be well-received. Of course, different teams may have different practices.