Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.023 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'string': 0.09; 'integers': 0.09; 'received:67.192': 0.09; 'received:67.192.241': 0.09; 'received:dfw.emailsrvr.com': 0.09; 'integers.': 0.16; 'subject:variable': 0.16; 'supplied': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'integer': 0.24; 'received:emailsrvr.com': 0.24; 'script': 0.25; 'received:(smtp server)': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'gives': 0.31; 'code': 0.31; 'gary': 0.31; 'produces': 0.31; 'them?': 0.31; 'another': 0.32; 'problem': 0.35; 'convert': 0.35; 'two': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'tips': 0.61; 'times': 0.62; 'email addr:gmail.com': 0.63; 'hey,': 0.75; 'multiplying': 0.84; 'twelve': 0.84 X-Virus-Scanned: OK Date: Tue, 11 Feb 2014 12:19:06 -0800 From: Gary Herron User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Flag control variable References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392149965 news.xs4all.nl 2852 [2001:888:2000:d::a6]:51540 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65960 On 02/11/2014 11:55 AM, luke.geelen@gmail.com wrote: > hey, i got another problem now, > if i use the imterpreter to do 3 * 4 it gives twelve > the script gives 3333? > any tips >>> 3*4 12 >>> "3"*4 '3333' Multiplying two integers produces the result you expect. Multiplying a *string* by an integer is what you are doing. (And it just repeats the string a number of times -- not what you want.) Your code used to have int(...) to convert the string supplied by sys.argv into integers. What happened to them? Gary Herron