Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: Newbie: How to convert a tuple of strings into a tuple of ints Date: Thu, 31 Dec 2015 09:52:41 +1100 Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de hNOJyrirGl5lTZ/Ryc6JZQ7tY+/JsR7Id0aHPZoEizUQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.09; 'subject:How': 0.09; 'subject:into': 0.09; 'thu,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; '31,': 0.22; 'am,': 0.23; 'dec': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'actual': 0.28; 'received:209.85.213.174': 0.29; 'code': 0.30; 'help!': 0.30; 'post': 0.31; 'that,': 0.34; 'received:google.com': 0.35; "isn't": 0.35; 'received:209.85': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'received:209.85.213': 0.37; 'received:209': 0.38; 'your': 0.60; 'more': 0.63; 'more.': 0.63; 'here': 0.66; 'situation': 0.67; 'chrisa': 0.84; 'to:none': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=FpfX/8PXmHw345GNUhykvwX45hitUlJkDopQj0yI7Pw=; b=cVMMZxoLjaSGnnf5LP40MFIBC+ALVcfMsUIps/LwVnwuzSAYcarPxDJQd4MVMZR+UU 7YLzBcQhQOXq+2HRNeGzH3rbff8BGgrWFjJnWPNRqKmtCglnz0DUV/7wtfyTCoPX1UT1 10CTqXlP5zal6hQwHVj3oAEMwieAfJGktGP9sEBlmSDiow8V9x3FZGh0noxJuRlNkbBE aiKttXMrCFWfkIlG3j4eZoQomrbcxwS6FvyajyxK06JFrbAyu3sVU0RvCaSooPS4z0IR kaFBqMR5Rvn2XQgcLbNYg0BevuV+8bkqB6HbrrloXdh+e95tgAd+luL+OpkzBDK7d+pT uV5g== X-Received: by 10.50.152.35 with SMTP id uv3mr5150212igb.13.1451515961818; Wed, 30 Dec 2015 14:52:41 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:101017 On Thu, Dec 31, 2015 at 9:46 AM, wrote: > How do I get from here > > t = ('1024', '1280') > > to > > t = (1024, 1280) > > > Thanks for all help! t = (int(t[0]), int(t[1])) If the situation is more general than that, post your actual code and we can help out more. Working with a single line isn't particularly easy. :) ChrisA