[Tutor] updating stock list

2018-04-30 Thread Shannon Evans via Tutor
Hi, i'm wanting to update the stock list at the end so that the fruit that's given is taken subtracted from the original stock list. The code i've written isn't updating it it's just staying the same. Any idea what i can do to fix this? import json stock_json= json.load(open("stock.json")) queue

[Tutor] Help with loops

2018-04-30 Thread Shannon Evans via Tutor
Hi, is there any way that i can add a loop or iteration or something so that i dont have to write out every person who has fruit. This information is coming from the following json files: *queue.json* file [ ["James Bruce", "Bananas"], ["Katherine Newton", "Bananas"], ["Deborah Garcia", "

[Tutor] Json files

2018-04-12 Thread Shannon Evans via Tutor
Hi, I have managed to get my two json files that need to be imported into python and then i need to write a program on who gets fruit and who doesn't and then need to get the final stock at the end. I was just wondering how i import the files into python and how i use them after that? [ ["James

[Tutor] Python help

2018-04-02 Thread Shannon Evans via Tutor
Hi, I am trying to write a code with if statements but the code keeps just repeating and not carrying on. I am trying to get user to input a grade, either A, B, C, D, E or F and trying to have an error message if anything but these values are inputted. This is what i've wrote so far: while True:

[Tutor] Problems Plotting in 3D

2017-08-31 Thread Kendall Evans
Hi I am sorry but I am new to python and am having some problems plotting in 3D spherical coordinates I am calculating the youngs modulus for a crystal along all directions in space using the method below as I have been given the compliance matrices(C): Find S=inv(C)

Re: [Tutor] Need some help with setuptools for my project.

2015-04-06 Thread Dylan Evans
o start the script. If you’d like to make your script available to the wider community, you can put it on PyPI. See: https://docs.python.org/2/distutils/packageindex.html — Dylan Evans ___ Tutor maillist - Tutor@python.org To unsubscribe or change subs

Re: [Tutor] Fwd: arrangement of datafile

2014-01-09 Thread Evans Anyokwu
First, the error message means 'item' is missing. You will need to assign your row as the item. And if you want nil where there is no value, then use if statement to check there is something otherwise make that empty value 'nil'. Sorry, gotta run my train just arrived. __

Re: [Tutor] arrangement of datafile

2013-12-27 Thread Evans Anyokwu
sorted out first then we can move on to the nested list. Good luck. Evans ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Convert SOAP response (ArrayOfInt) to Python list

2013-07-10 Thread Evans Anyokwu
69182, 292, 68027, 3404131, 82616, 18280, 11200, 704646, 543430, ] }''' myList = re.findall(r'\d+', retVal) aList =

Re: [Tutor] challenge-chapter 2

2013-05-22 Thread Evans Anyokwu
hat you have so far. Good luck, Evans On Wed, May 22, 2013 at 6:02 AM, Andrew Triplett wrote: > I am on chapter two for Python Programming working on the challenges and > the question is: > > 1. Create a list of legal and illegal variable names. Describe why each is > either le

Re: [Tutor] help

2012-12-28 Thread Evans Anyokwu
On Thu, Dec 27, 2012 at 12:07 PM, Randy WhiteWolf wrote: > I am an older newbie teaching myself Python programming. I copied the code > # Emonstrates escape sequences. This exercise is on page 22 of the Phthon > Programming for the Absolute Beginner by Michael Dawson. I have copied the > code verb

Re: [Tutor] Suggest Book

2011-11-11 Thread Evans Anyokwu
material. Good luck, Evans ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Converting files

2011-04-11 Thread Evans Anyokwu
I use Openoffice and it has an option to export your files to .pdf and lots of other file formats. It's a free download - and has all the usual Office applications... Search for 'OpenOffice' online. On Mon, Apr 11, 2011 at 9:48 PM, Alan Gauld wrote: > > "sunil tech" wrote > > > is there any wa

Re: [Tutor] Cherrypy HtmlArea

2011-04-09 Thread Evans Anyokwu
Hi Andrés, I'm not sure a lot of people on this list use Cheerypy - I use django myself. I would suggest you check cherrypy website, there's an IRC link at the top of the page. Good luck 2011/4/9 "Andrés Chandía" > > > I have put a textarea at a web generated by cherrypy, but I would like to >

Re: [Tutor] Generating a python file

2010-12-14 Thread Evans Anyokwu
on.org/mailman/listinfo/tutor > Peter, The page you linked to above was not found. Could you check the link again - -- Evans ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Finally finished my currency exchange program

2010-12-03 Thread Evans Anyokwu
I didn't find any of his previous questions as well - Looks like he just registered on this list to try and promote his product. Sneaky! On Fri, Dec 3, 2010 at 2:21 PM, Joel Goldstick wrote: > > On Fri, Dec 3, 2010 at 8:07 AM, Alan Gauld wrote: > >> >> "Eddie" wrote in message >> news:aanlktim

Re: [Tutor] Python Exercise

2010-11-29 Thread Evans Anyokwu
Providing trial section alone will not make much difference. You should consider removing the need to sign in as well and focus on providing great tutorial content. Good luck On Sun, Nov 28, 2010 at 2:43 AM, Kok Cheng Tan wrote: > Hi, > > Thanks for the feedback. > I will add a trial section th

Re: [Tutor] Python Books...*

2010-11-18 Thread Evans Anyokwu
rces? > > Hi Alan > > > Finally, do you explicitly want dead tree books or Kindle type e-books > > or are you OK with web based resources? > > What exactly is dead tree book. sounds interesting > > Thanks > > Kaushal Kaushal, dead tree book is the normal (printed) physical book you buy from a bookshop. -- Evans ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Django Book Recommendation

2010-04-07 Thread Evans Anyokwu
Nice book. I actually bought a copy of Python Web Development with Django last month, and I can't recommend it enough. On Wed, Apr 7, 2010 at 8:46 PM, wesley chun wrote: > i worked on another well-received Django book with a pair of great > co-authors called "Python Web Development with Django",

Re: [Tutor] New Python testing book

2010-02-12 Thread Evans Anyokwu
ts' on this list -- keep > them coming! > > David For those who don't like shortened URL, here's the actual link http://www.packtpub.com/view_popup/page/python-testing-beginners-guide-table-of-contents It's just the Table of Content and nothing else. -- Evans &

Re: [Tutor] Bounces

2009-10-08 Thread Evans Anyokwu
This one seems to have got through though.. On Thu, Oct 8, 2009 at 7:15 AM, Luke Paireepinart wrote: > I keep getting Mail Delivery Subsystem notices from tutor saying my mail is > undeliverable. Is that just me or are other people getting this as well? > I'm realizing now that a lot of my repl

[Tutor] [OT] EuroPython

2009-05-10 Thread Evans Anyokwu
Is anyone of you guys on this list going to EuroPython? http://www.europython.eu/ Unfortunately, I have registered to attend JavaOne, so can't make it. -- Evans http://www.javawug.org ___ Tutor maillist - Tutor@python.org http://mail.pytho

Re: [Tutor] mailing list

2008-09-16 Thread Evans
Hi, if it's Python tutorial you're after, then start from here http://docs.python.org/tut/ or do a search for 'Python tutorial' on any search engine. Good luck! -- Evans - Original Message - From: Phite Marano To: tutor@python.org Sent: Tuesday, Septem

Re: [Tutor] absolute beginner

2008-09-11 Thread Evans
I'd start by going through Alan's marvellous material. They are very good for beginners like yourself. If you run into any problems, just post a message here. http://www.freenetpages.co.uk/hp/alan.gauld Happy coding! -- Evans http://www.javawug.org - Original Message ---

Re: [Tutor] Help python coding not working

2008-06-11 Thread Evans Anyokwu
Just like you'd add any other button on your web page -- Evans On Wed, Jun 11, 2008 at 8:49 AM, Mfana-boy Msibi <[EMAIL PROTECTED]> wrote: > How to add a delete button in your web page in Python > > > > > __ Information from ESET NOD32 Antivirus, version

Re: [Tutor] Python in symbian (NOKIA E50)

2008-06-05 Thread Evans Anyokwu
See this is of any help! http://www.devshed.com/c/a/Python/Bluetooth-Programming-using-Python/ Evans http://www.javawug.org On Thu, Jun 5, 2008 at 3:45 PM, Ricardo Dueñas Parada <[EMAIL PROTECTED]> wrote: > Hi all, > > I want to write an script to send messages from my phone (N

Re: [Tutor] unsubscribtion

2008-05-01 Thread Evans Anyokwu
Kriti, You can unsubscribe yourself without waiting for anyone to do it for you. Follow this link http://mail.python.org/mailman/listinfo/tutor Bye. Evans http://www.javawug.org On Thu, May 1, 2008 at 2:00 PM, Kriti Satija <[EMAIL PROTECTED]> wrote: > Please unsubscribe my member

Re: [Tutor] Simple copy script

2008-04-12 Thread Evans Anyokwu
Its hard to tell what you're doing wrong without the code. Sorry, my policy is not to write code for anyone until they have something to show. On Sat, Apr 12, 2008 at 11:44 AM, Que Prime <[EMAIL PROTECTED]> wrote: > > I'm trying to copy files from one directory to another based on an input > txt

[Tutor] Testing 321

2008-04-01 Thread Evans Anyokwu
Please ignore, switching email address. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] how to disable MIN,MAX and CLOSE options using tkinter

2008-01-12 Thread Evans Anyokwu
to disable those options in Tkinter before. -- Evans - Original Message - From: brindly sujith To: tutor@python.org Sent: Saturday, January 12, 2008 10:56 AM Subject: [Tutor] how to disable MIN,MAX and CLOSE options using tkinter hi in my application i dont want MIN,MAX,CLO

Re: [Tutor] doubt in Regular expressions

2006-06-26 Thread Evans Anyokwu
Luke take note; the message was not from me! - Original Message - From: "Luke Paireepinart" <[EMAIL PROTECTED]> To: "Evans Anyokwu" <[EMAIL PROTECTED]>; Sent: Sunday, June 25, 2006 10:26 PM Subject: Re: [Tutor] doubt in Regular expressions > Post Scr

Re: [Tutor] doubt in Regular expressions

2006-06-25 Thread Evans Anyokwu
bump - Original Message - From: ravi sankar To: tutor@python.org Sent: Sunday, June 25, 2006 9:17 PM Subject: [Tutor] doubt in Regular expressions hello all,  i want to search strings in the database available and return the link of the string instead  simply

Re: [Tutor] search engine

2006-06-25 Thread Evans Anyokwu
e too ambiguous, generic and not defined. We don't know if you want to become a new Google, or you want a search facility for your site, or ...   Be very direct and please use Google to do your search first before requesting help.   Good luck    Evans   - Original Message - From:

Re: [Tutor] Python related mags

2006-06-13 Thread Evans Anyokwu
- Original Message - From: "Michael Sullivan" <[EMAIL PROTECTED]> To: "Andrew Robert" <[EMAIL PROTECTED]> Cc: "Python Tutor" Sent: Tuesday, June 13, 2006 3:26 AM Subject: Re: [Tutor] Python related mags > On Mon, 2006-06-12 at 21:13 -0400, Andrew Robert wrote: >> -BEGIN PGP SIGNED

Re: [Tutor] Runing a Python program

2006-05-13 Thread Evans Anyokwu
There's a simple way you can add your directory to the execution path. try this >>> sys.path.append(r'C:\python24\myPythonFiles') now, you can import your file with the import command >>> import yourFile   Note: This is only a temporary solution, when you close the interpreter, it will nee

Re: [Tutor] Call for volunteer to help revise images for One Day of IDLE Toying

2006-05-11 Thread Evans Anyokwu
Hello guys, I have sent the screen shot of the IDLE being selected from Windows XP start menu to Danny, incase someone is making another screen shot. Lets wait till he requests another one. Evans - Original Message - From: "Danny Yoo" <[EMAIL PROTECTED]> To: "Tu

Re: [Tutor] counting number of inputs (EARLIER VERSION SENT ACCIDENTLY)

2006-05-04 Thread MICHELLE EVANS
first entered value: 1 > second entered value: 2 > third entered value: 3 > fourth entered value: 4 > fifth entered value: 5 >RESULT: > returned list contains [1,2,3,4,5] > """ > if __name__ == "__main__": > print getInputs() > >

Re: [Tutor] counting number of inputs (EARLIER VERSION SENT ACCIDENTLY)

2006-05-03 Thread MICHELLE EVANS
put("Run number(-1 to end) : ")) numbers.append(number) print for number in numbers: print number - Original Message - From: "Python" <[EMAIL PROTECTED]> To: "MICHELLE EVANS" <[EMAIL PROTECTED]> Cc: "Tutor Python" S

[Tutor] Fw: counting number of inputs

2006-05-03 Thread MICHELLE EVANS
gt; count the number of lines entered.  I also need to print the run number with the highest and lowest input number.> > Thanks, I'm lost> Rick> - Original Message - From: MICHELLE EVANS To: tutor@python.org Sent: Tuesday, May 02, 2006 7:25 PM Subject: counting number of

[Tutor] counting number of inputs

2006-05-02 Thread MICHELLE EVANS
I am trying to count the number of times a positive number is entered from the user.  But, the program must stop after 5 user inputs or a negative number.   Can anyone help. Rick ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/

Re: [Tutor] Proxy

2005-03-04 Thread Gwyn Evans
On Sat, 29 Jan 2005 16:23:29 -0800 (PST), Ali Polatel <[EMAIL PROTECTED]> wrote: > is it possible to connect to somewhere through a proxy while using sockets > module of Python to connect? If yes can you show me some basic examples? Yes, but not auto-magically. If you want to stay at the sockets

Re: [Tutor] Newbie question.

2005-03-04 Thread Gwyn Evans
On Fri, 28 Jan 2005 09:42:07 +0200, Adriaan Louw <[EMAIL PROTECTED]> wrote: > I want to learn python as quick as possible, for web programming at first, > and applications later on. Any leads? Hi, I'd start with the basic python tutorials, then have a look at something like CherryPy (http://www

Re: [Tutor] How to use threads ?

2005-03-03 Thread Gwyn Evans
On Thu, 3 Mar 2005 17:53:11 +0200, Mark Kels <[EMAIL PROTECTED]> wrote: > On Thu, 3 Mar 2005 14:31:55 +0000, Gwyn Evans <[EMAIL PROTECTED]> wrote: > > Hi, > > The one thing that stands out is that when you subclass Thread as > > you do, you need to override

Re: [Tutor] How to use threads ?

2005-03-03 Thread Gwyn Evans
On Thu, 3 Mar 2005 16:04:28 +0200, Mark Kels <[EMAIL PROTECTED]> wrote: > On Wed, 2 Mar 2005 14:48:11 -0800 (PST), Shitiz Bansal > <[EMAIL PROTECTED]> wrote: > > The thread finishes when: > > 1.The run method finishes. > > 2.In case of the loop- you may - > > > > >>> import threading > > >>> class

[Tutor] Re: Threaded persistance?

2005-03-03 Thread Gwyn Evans
On Wed, 2 Mar 2005 21:15:50 +, Gwyn Evans <[EMAIL PROTECTED]> wrote: > On Wed, 2 Mar 2005 20:34:18 +0000, Gwyn Evans <[EMAIL PROTECTED]> wrote: > > I had a look at using ZODB but hit problems when trying to have two > > connections to the same FileStorage DB,

[Tutor] Re: Threaded persistance?

2005-03-02 Thread Gwyn Evans
On Wed, 2 Mar 2005 20:34:18 +, Gwyn Evans <[EMAIL PROTECTED]> wrote: > I had a look at using ZODB but hit problems when trying to have two > connections to the same FileStorage DB, but a second look at things > suggested that dbm might well do what I need, if I ensure only on

Re: [Tutor] Threaded persistance?

2005-03-02 Thread Gwyn Evans
On Wed, 02 Mar 2005 15:53:17 -0500, Kent Johnson <[EMAIL PROTECTED]> wrote: > Gwyn Evans wrote: > > Hi, > > New to Python, but with Java background I'm interested in > > comments/suggestions for something I'm trying... > > > > I've g

[Tutor] Threaded persistance?

2005-03-02 Thread Gwyn Evans
Hi, New to Python, but with Java background I'm interested in comments/suggestions for something I'm trying... I've got a series of events (basically a dictionary of a few key:value pairs) which I'd like to forward onto a web service. That should be no problem, but I'm investigating what I c

Re: [Tutor] happy holidays!

2004-12-24 Thread Israel C. Evans
100 foot tall mashed potato sculptures representing the common roots to all belief systems is my holiday wish. That, and a really neat spaceship. Seriously though, I think the best part about "happy holidays" is the Happy. Spread Happy wherever you go. Make it the great plague of the new age.

Re: [Tutor] Popen? or something else

2004-12-22 Thread Israel C. Evans
Fun! testo = [line for line in commands.getoutput('ls -la').split('\n')] for line in testo: print line spits out nicely formatted ls data. It's Shelly! Ertl, John wrote: Hugo, That looks like it will work great. Thanks, John -Original Message- From: Hugo González Monteverde [mailto