Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: print a list of Python keywords

Python: print a list of Python keywords
{filelink=16548}

import keyword
for reserved in keyword.kwlist:
    print "#"+reserved
# ce module affiche ça
#and
#as
#assert
#break
#class
#continue
#def
#del
#elif
#else
#except
#exec
#finally
#for
#from
#global
#if
#import
#in
#is
#lambda
#not
#or
#pass
#print
#raise
#return
#try
#while
#with
#yield

Users who found this page were searching for:

  • print keywords python

No comments yet.

Leave a Comment