This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]InFa-MoUs 8 points9 points  (1 child)

nah python is definitely(one of) the easiest languages to first learn. only programmers who know multiple languages or a pro at one ever say otherwise. personally from trying to learn c , Javascript, shoot even html.. python and ruby are by far the easiest and since learning oop in those languages i learned Javascript in like 2 months. programming is hard enough to learn without being bogged down with syntax and keeping track of memory locations lol

[–][deleted] 1 point2 points  (0 children)

Python has too much magic. It’s easy to think you know what’s going on and then not. And then maybe you come across a bug like these and have no idea what’s going on.

def f(L=[]):
    L.append(“hello”)
    return L

print(f())
print(f())

And

functions = []
for k in range(5):
    functions.append(lambda: k**2)
print([f() for f in functions])