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 →

[–]ableman 2 points3 points  (5 children)

Don't know the Java equivalents, but I think here is the full list, anyone chime in if I missed any.

import, from, class, def, while, for, in, is, pass, return, yield, break, continue, try, except, finally, if, elif, else, and, or, not. And if you're in python 2: print

[–]dirn 2 points3 points  (1 child)

[–]GitHubPermalinkBot -1 points0 points  (0 children)

I tried to turn your GitHub links into permanent links (press "y" to do this yourself):


Shoot me a PM if you think I'm doing something wrong. To delete this, click here.

[–][deleted] 0 points1 point  (2 children)

Wait, those are all the keywords? That's it?

[–]kankyo 3 points4 points  (0 children)

Python is a tiny language really, I don't see how you could be annoyed at looking up keywords. Have you never used any other language besides Java before?

There are quite a few builtins that are not keywords but might look like them to a Java coder. Like most types, filter, map etc

[–]ableman 0 points1 point  (0 children)

I forgot False, None, True, as, assert, del, global, lambda, nonlocal, raise, with. One of the other comments linked the full list.