+ 8
Why python is fun
lol
7 Réponses
+ 9
Because of its syntax
The syntax in Python helps the programmers to do coding in fewer steps as compared to Java or C++.
+ 6
Because of people who make it fun. It can also be used to automate a lot if boring stuff.
+ 4
I‘d say it‘s mainly because it hardly feels like a programming language, but more like a normal language:
————————————
• sorting a list:
list.sort()
• Creating a function:
def greet(name):
print(‘Hello’,name)
————————————
The syntax and functions are focused on readability rather than performance. Read more about it here:
https://medium.com/@propagandra/understanding-how-code-is-executed-464c95e24b0b
You also don‘t need to compile any code to run it and there are many libraries (called modules) you can use to avoid any complicated stuff.
+ 3
Imo it's fun because the syntax is pretty straightforward which makes it easier to pickup for beginners and grasp the basics of programming language like if you want to print Hello World you simply say:
Print("Hello World")
And for doing the same thing in java you have to first make a class then main function and then write:
System.out.print("Hello World");
Secondly I love how you don't have to deal with those brackets while using loops and if else statements and how indentation works so perfect.
Plus there are countless libraries in python by importing which we could do so much complicated stuff easily.
+ 2
😀 because all programming languages are lots of fun 😊
+ 1
Hahahaha, just run this
>>> import antigravity
You'll be flying then 😆
0
because of python Dao!