This is a mailing list, so the best way to get help is to send a request
with code examples and most importantly what you have already tried. That
being said, there are some smart people on here, much more experienced than
I am on Python so I would say you can get help with any problem you may
have
On 30/10/17 21:02, Alchemy wrote:
> I’m stuck on the homework ,butmore importantly stuck on the concepts behind
> the homework.
>
> Can your orginazation help?
Yes, we are happy to help with homework although we won't
usually give you the full answer. We will make suggestions
and are happy to r
Hello,
I am in the midst of a career change from renovations to computers.
I’m used to working conceptually and understand coding is that.
I am taking an online opencourseare classfrom MIT “Introduction to computer
science and programming”.
The class uses python 2.7, has video lectures and homewo
On 05/09/17 19:25, Ruth Hardy wrote:
> I was wondering if you can help me please with these computer science tasks
We can help, but we won;t do them for you.
> First Task
>
> Write code do the following things involving strings. Wherever possible,
> you should try to incorporate functions/pro
Dear Sir or Madam
I was wondering if you can help me please with these computer science tasks as
I don’t know where to start:
First Task
Write code do the following things involving strings. Wherever possible, you
should try to incorporate functions/procedures, although they are not
appropr
>I have below code but it is giving this error:
>AttributeError: Queue instance has no attribute 'taskdone'
>import threading
>from Queue import Queue
>def worker(q):
>while True:
> dataset = q.get()
> print("q is taken out")
> q.taskdone()
Per documentation it is task_done (
> AttributeError: Queue instance has no attribute 'taskdone'
Method name is task_done (not taskdone)
https://docs.python.org/2/library/queue.html#Queue.Queue.task_done
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options
On 26/11/16 09:07, anish singh wrote:
> I have below code but it is giving this error:
> AttributeError: Queue instance has no attribute 'taskdone'
Please post the full error not just a summary.
Also please post the actual code...
> import threading
> from Queue import Queue
I get an import er
I was just writing to read a file using popen and wanted to use queue along
with it.
I have below code but it is giving this error:
AttributeError: Queue instance has no attribute 'taskdone'
import threading
from Queue import Queue
def worker(q):
while True:
dataset = q.get()
prin
On 19/04/16 10:13, Tim Golden wrote:
> In any recent version of Windows (ie Vista & later) the most common way
> to find a program is to press the "Start" button or the "Windows" key
> and just start typing its name
Interesting, I've been using Windows 10 since it came out and didn't
know about
On 19/04/2016 10:03, Alan Gauld wrote:
However, for now, you probably want to use IDLE which should
come with Python. (It is sometimes called Python GUI on
Windows too.)
You should find it under Python in your All Programs view.
In any recent version of Windows (ie Vista & later) the most comm
On 19/04/16 02:20, Bereke via Tutor wrote:
> Hello there:
>
> i am facing some problem with my python programming language which is
> already installed in My laptop lenovo, 8.1 OS.
I'm assuming that means Windows 8.1?
> The existing language says "python 27 ". when i click on it,
> it turns
Hello there:
i am facing some problem with my python programming language which is already
installed in My laptop lenovo, 8.1 OS. The existing language says "python 27 ".
when i click on it, it turns to "python or pythonw". I can write on its dark
surface, but it does not have tools like file
On 29/02/16 17:31, Donald Woolfolk wrote:
> Hello,
>
> I am new to Python 3.5 and I am writing code to get data
> from a session api call and load that data into a csv file
> or a MySQL database.
That's great, we can help with that, but...
> I am able to make the session call and also to conne
Hello,
I am new to Python 3.5 and I am writing code to get data from a session api
call and load that data into a csv file or a MySQL database. I am able to make
the session call and also to connect to the MySQL db, but I am not able to
convert the result (JSON) data. I would like assistance w
On 27Feb2015 02:16, Barbara Heliodora G. Rodrigues
wrote:
I'd like to ask for help with an issue I have with python. My MAC is with OS
10-6.8, darwin kernel, 64 bits. For some reason I updated macports and it
automatically updated python to 2.7 with a 32 bits library, and it is giving me
lot
On 27/02/15 02:16, Barbara Heliodora G. Rodrigues wrote:
Dear tutor,
I'd like to ask for help with an issue I have with python. My MAC is with OS
10-6.8,
I'm not a MacOs expert but I know MacOS uses Python in some of its tools
so do not mess with the standard version, you might break somethin
Dear tutor,
I'd like to ask for help with an issue I have with python. My MAC is with OS
10-6.8, darwin kernel, 64 bits. For some reason I updated macports and it
automatically updated python to 2.7 with a 32 bits library, and it is giving me
lots of trouble. I can't install any new software tha
Hi Glen, and welcome! My responses below.
On Thu, May 15, 2014 at 09:58:07PM -0400, Glen Chan wrote:
> Hello, I am student trying to fugure out why when I enter any number
> it says error. It's only suppose to do that if it's out the 1-10
> range. Please help. Thank you.
You've made an mistake
On 16/05/14 02:58, Glen Chan wrote:
Hello, I am student trying to fugure out why when I enter any number it
says error.
Because that's what you programmed it to do.
Almost. If you enter 1 or 10 you won't get an error.
Look at your logic:
number = input('Enter a number between 1 and 10: ')
wh
Hello, I am student trying to fugure out why when I enter any number it says
error. It's only suppose to do that if it's out the 1-10 range. Please help.
Thank you.
number = input('Enter a number between 1 and 10: ')
while number < 1 or number > 10:
print 'Please enter a number between 1
Hi
This will solve your purpose:
Yes we can write in better way also :
--
#The Dice Game
#add libraries needed
import random
#the main function
def main():
print
#initialize variables
playerOne = 'No Name'
playerTwo = 'No Name'
endProgram ="no"
On 05/10/2014 11:16 PM, Glen Chan wrote:
Hello, I am a student trying to figure out Python. I am getting errors that I
don't know how to fix. What do you do after you get the error message and
something is highlighted? Does that have to be deleted? Anyway, here is what I
mean...
def main():
On 11/05/14 04:16, Glen Chan wrote:
Hello, I am a student trying to figure out Python. I am getting errors
that I don't know how to fix. What do you do after you get the error
message and something is highlighted? Does that have to be deleted?
The error doesn't need to be deleted because it app
Hey Glen, include the error you are getting. It will make answering
your question easier. How are you running this program, in an IDE?
On Sat, May 10, 2014 at 11:16 PM, Glen Chan wrote:
> Hello, I am a student trying to figure out Python. I am getting errors that
> I don't know how to fix. What d
Hello, I am a student trying to figure out Python. I am getting errors that I
don't know how to fix. What do you do after you get the error message and
something is highlighted? Does that have to be deleted? Anyway, here is what I
mean...
#>>> The Dice Game
#add libraries needed
import rando
On Mon, Dec 02, 2013 at 04:33:27PM -0600, Blake wrote:
> I'm writing a program to calculate totals and change for a menu, and
> I'm having a few issues. If you could help me, it would be greatly
> appreciated.
Would you like us to guess what issues you are having?
Let me look into my crystal
On 02/12/2013 22:33, Blake wrote:
I'm writing a program to calculate totals and change for a menu, and I'm having
a few issues. If you could help me, it would be greatly appreciated.
A little more data would help :) Some code, the OS and Python versions
and the precise nature of the issues
I'm writing a program to calculate totals and change for a menu, and I'm having
a few issues. If you could help me, it would be greatly appreciated.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.pyth
On 6/17/2013 10:26 AM, Jacobs, Teri (CDC/NIOSH/DSHEFS) (CTR) wrote:
Hi,
Hi - welcome to the tutor list. Be aware that we are a few volunteers.
Your question is one very long line. Please in future ensure it is
wrapped so we don't have to scroll.
I have wrapped it here.
I have a command l
Hi,
I have a command line to spread geoprocessing operations across multiple
processes to speed up performance. However, I do not know how to import the
command line (or at least import it properly) in Python 2.7.2. Here's the
script example given on ArcGIS 10.1 Help:
import arcpy
# Use ha
> import random #import random number generator module
> target = random.randint(1,100) #generates random number between 1 and 100
> guess = float(raw_input('pick a number between 1 and 100'))
> while guess != target:
> if guess < target: print 'too low'
> elif guess > target: print 'too high
First off I want to really thank you for all of the help! I am in my
first semester as I started as a non traditional student in January.
Even though I am in an intro class I think that many of my class mates
had more of a c/s foundation in high then I did. It took me a few
tries but I did finally
Carolina Dianne LaCourse wrote:
[...]
I understand that I need to ask for raw input from the user and that I
need to be able to use the if elif else to tell the user whether their
number matches or id too high or to low but am just not sure what to
do first. Any advice would be greatly appreciat
On 2/24/2012 10:18 PM, Carolina Dianne LaCourse wrote:
Hi,
I have never programed before and am brand new to python also. I am
trying to create a Hi-Lo game and am not really sure where to start.
These are the instructions that I have. I know that I will need to
import the random number generator
Hi,
I have never programed before and am brand new to python also. I am
trying to create a Hi-Lo game and am not really sure where to start.
These are the instructions that I have. I know that I will need to
import the random number generator and have looked up how to do that.
I understand that I n
Thanks, everyone:
Your suggestions worked. I will make sure to include full information next
time.
Becky
On Sat, Mar 12, 2011 at 12:14 AM, Steven D'Aprano wrote:
> Becky Mcquilling wrote:
>
>> If anyone is familiar with python-gnupg, I am having some difficulty with
>> the syntax. I've tried
Becky Mcquilling wrote:
If anyone is familiar with python-gnupg, I am having some difficulty with
the syntax. I've tried the following:
When dealing with third party packages, unless it is an extremely
well-known package like numpy or nltk, it is usually a good idea to link
to the project's
On Sat, Mar 12, 2011 at 2:07 AM, David Hutto wrote:
> As a matter of fact, looking at them with know
*no*
knowledge of the
> module, it says it's a typeerror, and that it expects string or
> buffer, but gets file. If this is the same error in both instances,
> then it's that output needs to be a
As a matter of fact, looking at them with know knowledge of the
module, it says it's a typeerror, and that it expects string or
buffer, but gets file. If this is the same error in both instances,
then it's that output needs to be a string or buffer, so just string
either the datae variable, or the
On Sat, Mar 12, 2011 at 1:39 AM, Becky Mcquilling
wrote:
> If anyone is familiar with python-gnupg, I am having some difficulty with
> the syntax. I've tried the following:
> f = open('c:/test/filename.txt', 'r')
> datae = gpg.encrypt_file(f.read(), 'ladym...@gmail.com',
> output=open('c:/gpg_tes
Show the entire code, and error for both usages. The usages and a
single error message for them both may be enough for someone not to
try them out, and who can help you, if they knew more about the
problem.
Not everyone here will be an expert, but we do read direct code vs
direct error, if we've b
If anyone is familiar with python-gnupg, I am having some difficulty with
the syntax. I've tried the following:
f = open('c:/test/filename.txt', 'r')
datae = gpg.encrypt_file(f.read(), 'ladym...@gmail.com',
output=open('c:/gpg_test/data.gpg2', 'w'))
or
file_to_encrypt = open('c:/gpg_test/data.gp
Dear Tutor:
I would like to install a program that was written with python 3.1, the
computer that I would like to put in on has Win 98SE. I tried Python 3.1.2 MSI
and 2.61 but got a message that a DLL was not there and would not install. I
then tried them on a Win 7 computer and got to the 5 fi
44 matches
Mail list logo