Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74959
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: How to use string constant? |
| Date | 2014-07-21 17:52 -0400 |
| References | <2b1f7af1-1967-4610-a10c-d4ce625ec184@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12155.1405979707.18130.python-list@python.org> (permalink) |
On 7/21/2014 4:46 PM, fl wrote: > Hi, > > I learn string constant on Python tutorial at: > https://docs.python.org/2/library/string.html > > Although it gives explanation, it does not show me any example usage. > > Could you give me an example on using these options? > > > string.digits > > string.ascii_letters >>> import string >>> 'a' in string.ascii_letters True >>> 'a' in string.digits False -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How to use string constant? fl <rxjwg98@gmail.com> - 2014-07-21 13:46 -0700 Re: How to use string constant? Terry Reedy <tjreedy@udel.edu> - 2014-07-21 17:52 -0400
csiph-web