28 odpowiedzi
+ 22
I don't know whether people are just joking when they compare languages based on line count, but if they're being serious, it's a really weak mindset, especially when the examples they give are overly simplistic in application (ie, "ooooh, look, in python, you can print out letters to the screen in one line!"). It's really just a drop in the bucket of goodness that lower level languages like Java and C++ have, that Python can't really measure up to.
Comparing Python to literally any lower level language is like comparing a brick outhouse to the people that built it; there is no comparison. That said, for an outhouse, Python is a pretty well built one, though its purpose remains unchanged. It's easy to develop in, tons of libraries to use, and can pretty much do anything, very badly.
If you want any reasonable amount of performance in apps you create, don't rely on Python to do it, because it will drop the ball in all categories, whether it's processor time, memory, or network performance. Oh, and good luck with efficient multiprocessing, what with the interpreter lock and all. Having multiple interpreter instances isn't fun either.
You may not see the need to worry about any of this right now, and you're absolutely right! Because nine times out of ten, it won't fail, and is fairly reliable, and tons of support and forums to help you. Just so long as you can find your way through the mess that is Python's implementation of OOP, it will serve you well.
+ 10
Which one is better?
**C++**
#include <iostream>
int main() {
std::cout << "Hello, world!" << std::endl;
return 0;
}
**JAVA**
public class HelloClass {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
**PYTHON**
print("Hello, world!")
+ 8
It's good for all of the reasons you already enjoy and love using it. :) Just another means to an end, so if you enjoy it, that's good enough reasoning. For myself, it's one of my least favorite languages that I know, but that isn't to say it is a bad or incapable language.
+ 6
Maksat Ramazanov,
I'd say C++, Java and then Python. Most IDEs automatically create the main structure, so it's not as if one usually has to type that in. A more simplistic line isn't the equivalent of being better or worse thoguh. I do agree though, Python is certainly more simplistic and that's ideal for many who are new or not savvy in the other languages.
+ 6
Not hurting anyone and any language let down but ..
The truth is python have short syntax and easy way to demonstrate or learn .....
+ 3
Maksat Ramazanov I would say which code is shorter ☺️ From point of performance C/C++ overcomes both Java and Python. Every language has it own niche and demonstrates it's best values.
+ 2
Python is flexible and easy to learn. Even you know nothing about coding you can still create fantastic games
+ 1
Alireza Rezaeian everything in your hands! Just don't stop with Python and hard work
+ 1
The python language is one of the most accessible programming languages available because it has simplified syntax and not complicated, which gives more emphasis on natural language.
+ 1
Python is easy to use, powerful, and versatile, making it a great choice for beginners and experts alike. Python's readability makes it a great first programming language — it allows you to think like a programmer and not waste time with confusing syntax. ... If Python isn't installed, it's easy to download and install.
+ 1
Python is good programming language but you can't compare language just by easy Syntex.
+ 1
Python is easy to understand and super easy to learn than other programming languages.
+ 1
This is because it has simplified syntax and not complicated, which gives more emphasis on natural language.
Due to its ease of learning and usage, python codes can be easily written and executed much faster than other programming languages.
0
Look how easy it is
https://code.sololearn.com/cP8x9GZq4Vzz/?ref=app
0
Because It has simple syntax and you can use it in many works. (It has many resources to learn too.)
0
Python is the future thats why now its so popular...
0
It's because of its ability to do so many things
0
so Slow😑😑😑
0
Python is a open source grograming language .it is used in vast area. You can learn it soon , comparatively to other programming languages.hope you became soon