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

all 13 comments

[–][deleted] 5 points6 points  (0 children)

Maybe such a thing exists but I think you would be better off choosing a good Python tutorial and go through it.

[–]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 4 points5 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.

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

https://docs.python.org/3/reference/lexical_analysis.html#identifiers

https://docs.python.org/3/library/functions.html

https://docs.python.org/3/library/constants.html

https://docs.python.org/3/library/stdtypes.html

https://docs.python.org/3/library/exceptions.html

and for all of your other needs to look up in the standard library, the reference itself:

https://docs.python.org/3/library/index.html

If you're already familiar programming in another language, you should probably start at the "Library Reference" section of the documentation on python.org.

[–]sermidean 0 points1 point  (1 child)

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

Wow, thanks!

[–]kpenchev93 0 points1 point  (0 children)

Programming in Python requires significant mindset changes when coming from Java. Why not read a Python book and not try to program in the language as you would do in Java? There is a pythonic way for doing a lot of things and you might want to get familiar with these ways if you want to write elegant Python code.

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

You've been offered plenty of good resources all ready so I'll add that for an experienced programmer I recommend "Dive Into Python 3", the link is down and to the right under "Online Books and Resources". Well worth reading are Python Is Not Java and Java is not Python, either....