Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.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.172 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.68; '*S*': 0.03; 'subject:code': 0.07; 'thanks.': 0.20; 'code:': 0.26; 'message-id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'subject:?': 0.36; 'skip:o 20': 0.38; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'to:addr:python.org': 0.39; 'kindly': 0.61; 'subject:this': 0.83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=f4khfEXtQucE1KnA1BdJEnkjxFR+h3/3p7CUlD/eY4c=; b=koTR0w6AIrJhOxufhP2jL6R7HjqY/Y1NrICj8fJjj6wJRmKEaaFz87tdpNjewk00g5 VEjczLtIU7t/YwZUKemo+gW0Cws0okEQganDVeUef2h00LnbZT5zijhQyEA4sjUZAjOf ezb1F5NCOmsoyt33eTqOIIAUk9GTzU5qT3WK+uh1u6Gxu/clHcPz9hRCcWhNhc72MrUm tJLRTfntUAaSRb7BNljjVRgIe0T9Hr6BIETw8tcoB/RJ7RYby03Mdd0+vqlbY7HlSI6H s2Yipbt7DpfS5H2hbQmevlm2EymzifZ7sVijig9RyeHCQhVPkQ2GulktGti+0vb5Z5h1 u/1g== MIME-Version: 1.0 X-Received: by 10.182.230.169 with SMTP id sz9mr20420997obc.31.1416174332485; Sun, 16 Nov 2014 13:45:32 -0800 (PST) Date: Sun, 16 Nov 2014 22:45:32 +0100 Subject: What does this line of code mean? From: Abdul Abdul To: python-list@python.org Content-Type: multipart/alternative; boundary=001a11c32d0a072b80050800c8c5 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416174334 news.xs4all.nl 2934 [2001:888:2000:d::a6]:42948 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80909 --001a11c32d0a072b80050800c8c5 Content-Type: text/plain; charset=UTF-8 I just came across the following line of code: outputfile = os.path.splitext(infile)[0] + ".jpg" Can you kindly explain to me what those parts mean? Thanks. --001a11c32d0a072b80050800c8c5 Content-Type: text/html; charset=UTF-8
I just came across the following line of code:

outputfile = os.path.splitext(infile)[0] + ".jpg"

Can you kindly explain to me what those parts mean?

Thanks.
--001a11c32d0a072b80050800c8c5--