Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100747

Re: Newbie: String to Tuple

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: Newbie: String to Tuple
Date 2015-12-22 20:59 +0000
Message-ID <mailman.69.1450817986.2237.python-list@python.org> (permalink)
References <56576725-0f10-4c7b-aead-272f2e3a8456@googlegroups.com>

Show all headers | View raw


On 22/12/2015 20:53, KP wrote:
> How do I convert
>
> '1280,1024'
>
> to
>
> (1280,1024) ?
>
> Thanks for all help!
>

Start with this https://docs.python.org/3/library/stdtypes.html#str.split

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Newbie: String to Tuple KP <kai.peters@gmail.com> - 2015-12-22 12:53 -0800
  Re: Newbie: String to Tuple Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-12-22 20:59 +0000
    Re: Newbie: String to Tuple KP <kai.peters@gmail.com> - 2015-12-22 13:06 -0800
  Re: Newbie: String to Tuple Peter Otten <__peter__@web.de> - 2015-12-22 22:07 +0100

csiph-web