Wrox Programmer Forums
|
BOOK: Beginning Python: Using Python 2.6 and Python 3.1
This is the forum to discuss the Wrox book Beginning Python: Using Python 2.6 and Python 3.1 by James Payne; ISBN: 978-0-470-41463-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Python: Using Python 2.6 and Python 3.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2014, 11:12 PM
Registered User
 
Join Date: Jan 2014
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default code shows error

the code given in chapter 4 page 59 shows error. whenever i try to enter the code below it says syntax error
Code:
milk_price = 1.50
if milk_price <1.25:
     print("Buy two cartons of milk,they're on sale")
     elif milk_price < 2.00:
i was suppose to enter the full code given in the book but after this code it shows the error
SyntaxError : invalid syntax (<pyshell#3>, line 3 )

Last edited by Randhir; January 22nd, 2014 at 12:36 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
code shows error Randhir Python 1 May 6th, 2016 11:43 PM
no image shows i_m_9415 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 May 12th, 2010 02:57 AM
So that Menu shows only subnodes of a node itself KamalRaturi ASP.NET 2.0 Professional 0 October 14th, 2006 09:26 AM
Shows monthly records leion General .NET 1 May 14th, 2004 07:34 AM
Combobox that shows what's not in its list Mitch Access 6 September 18th, 2003 11:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.