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
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
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
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
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
>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
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
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()
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
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
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
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
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
On Sat, May 9, 2015 7:08 PM CEST boB Stepp wrote:
On Sat, May 9, 2015 at 3:23 AM, acolta andrycolt...@gmail.com wrote:
Hi guys,
I want to start coding in python. My background is Linux/Bash/Perl
(begginner).
My appreciate if somebody will recommend
Hi guys,
I want to start coding in python. My background is Linux/Bash/Perl (begginner).
My appreciate if somebody will recommend books/tutorials + exercises to
practice.
Thank you in advance,
Andrei
___
Tutor maillist - Tutor@python.org
To
On Sat, May 9, 2015 at 3:23 AM, acolta andrycolt...@gmail.com wrote:
Hi guys,
I want to start coding in python. My background is Linux/Bash/Perl
(begginner).
My appreciate if somebody will recommend books/tutorials + exercises to
practice.
This question comes up quite frequently. If you
On Sat, May 9, 2015 at 3:23 AM, acolta andrycolt...@gmail.com wrote:
Hi guys,
I want to start coding in python. My background is Linux/Bash/Perl
(begginner).
My appreciate if somebody will recommend books/tutorials + exercises
to practice.
I first cut my Python teeth using
On 09/05/15 09:23, acolta wrote:
I want to start coding in python. My background is Linux/Bash/Perl (begginner).
My appreciate if somebody will recommend books/tutorials + exercises to
practice.
If you are happy writing basic shell/perl scripts then you can
probably jump straight into the
Thanks for sharing, will try it.
Cheers,
Andrei
On 9 May 2015 15:45, Nym City nymc...@yahoo.com wrote:
I am on the same boat. I have tried using online sites like codeacademy
and courses on courser but now I am starting with this new book called
Automate The Boring Stuff with Python. So far
I am on the same boat. I have tried using online sites like codeacademy and
courses on courser but now I am starting with this new book called Automate
The Boring Stuff with Python. So far so good. Thank you.
On Saturday, May 9, 2015 8:41 AM, acolta andrycolt...@gmail.com wrote:
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
On 27Feb2015 02:16, Barbara Heliodora G. Rodrigues
barbara_...@yahoo.com.dmarc.invalid.br 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
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
Hello All,
I need help on the
following: I have a created a project from a csv file to calculate the
mean and standard deviation.
However, I would like to
create a drop-down list and display the mean and standard deviation? Is there
a module
for that?
Thank you,
Tammy
What is the user interface that your program is using, currently? IE:
QT, GTK, Tkinter, Curses, Kivy, Pygame, Or None?
What is the target system on which your program runs?
How are you currently viewing the mean and standard deviation results?
What version of Python are you using and what is
On 31/12/14 13:49, Tammy Miller wrote:
I need help on the
following: I have a created a project from a csv file to calculate the
mean and standard deviation.
I assume that means you read the data from the CSV file
and display the stats?
However, I would like to
create a drop-down list and
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
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: ')
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
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
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 random
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 gchan...@msn.com wrote:
Hello, I am a student trying to figure out Python. I am getting errors that
I don't know how
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
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():
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:
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
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
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
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
is it possible to reorder a sentence in the form of SVO (Subject Verb
Object) into the form of SOV (Subject Object Verb) by using a python
program? if so, how?
regards,
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription
On 15/04/2013 09:54, Jabesa Daba wrote:
is it possible to reorder a sentence in the form of SVO (Subject Verb
Object) into the form of SOV (Subject Object Verb) by using a python
program? if so, how?
regards,
Yes. By writing code.
You could have answered your own question by typing
On 15/04/13 09:54, Jabesa Daba wrote:
is it possible to reorder a sentence in the form of SVO (Subject Verb
Object) into the form of SOV (Subject Object Verb) by using a python
program? if so, how?
Python is a general purpose programming language so yes, you can program
it to do any
For example, see: http://nltk.org.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 5 February 2013 05:08, eryksun eryk...@gmail.com wrote:
On Mon, Feb 4, 2013 at 7:21 PM, Oscar Benjamin
oscar.j.benja...@gmail.com wrote:
eigenvalues, eigenvectors = np.linalg.eig(C)
First sort by eigenvalue magnitude:
idx = np.argsort(eigenvalues)[::-1]
print idx
[ 0 1
On 04/02/13 06:24, Gayathri S wrote:
Hi All!
If i have data set like this means...
3626,5000,2918,5000,2353,2334,2642,1730,1687,1695,1717,1744,593,502,493,504,449,431,444,444,429,10
...
458,5022,3640,3644,5000,2922,5000,2346,2321,2628,1688,1666,1674,1696,744,590,496.
How to
On 04/02/13 17:24, Gayathri S wrote:
Hi All!
If i have data set like this means...
3626,5000,2918,5000,2353,2334,2642,[...],496.
No need to dump your entire data set on us. Just a few representative
values will do.
How to do PCA on this data? if it is in array how to do
How to do PCA on this data? if it is in array how to do that? and also how
to use princomp() in PCA?
Principal component analysis,
http://en.wikipedia.org/wiki/Principal_component_analysis
may not be built in. Do you know for sure that it is? According to
this blog entry, you can do it
On 4 February 2013 06:24, Gayathri S gayathri.s...@gmail.com wrote:
Hi All!
If i have data set like this means...
3626,5000,2918,5000,2353,2334,2642,1730,1687,1695,1717,1744,593,502,493,504,449,431,444,444,429,10
On Mon, Feb 4, 2013 at 7:21 PM, Oscar Benjamin
oscar.j.benja...@gmail.com wrote:
eigenvalues, eigenvectors = np.linalg.eig(C)
First sort by eigenvalue magnitude:
idx = np.argsort(eigenvalues)[::-1]
print idx
[ 0 1 2 3 8 10 11 12 14 22 20 21 18 19 23 24 17 16 15 13 9 7 5 6
Hi All!
If i have data set like this means...
3626,5000,2918,5000,2353,2334,2642,1730,1687,1695,1717,1744,593,502,493,504,449,431,444,444,429,10
438,498,3626,3629,5000,2918,5000,2640,2334,2639,1696,1687,1695,1717,1744,592,502,493,504,449,431,444,441,429,10
On 1/30/2013 1:51 AM, Gayathri S wrote:
I am sorry that you chose to ignore my request to start a new email with
a relevant subject.
Please next time do so.
The easier you make it for us to help you the more likely we will want
to help.
--
Bob Gailer
919-636-4239
Chapel Hill NC
Hi All!
I don't know how to read text file in python. If the data
values are stored in a text file format, for example(1,30,60,90,120...200)
means what i would do for reading it in python. could you just explain it.
Thanks!
Keep Smiling.[?]
On 01/30/2013 01:51 AM, Gayathri S wrote:
Hi All!
I don't know how to read text file in python. If the data
values are stored in a text file format, for example(1,30,60,90,120...200)
means what i would do for reading it in python. could you just explain it.
infile =
A safer approach would be -
with open(filepath, mode as filehandle:
indent//operation with the file.
This way, you do not have to remember to close the file explicitly.
On Wed, Jan 30, 2013 at 12:27 PM, Dave Angel da...@davea.name wrote:
On 01/30/2013 01:51 AM, Gayathri S wrote:
Hi All!
missed a parenthesis, it should look like -
with open(filepath, mode) as filehandle:
indent//operation with the file.
On Wed, Jan 30, 2013 at 12:31 PM, spa...@gmail.com wrote:
A safer approach would be -
with open(filepath, mode as filehandle:
indent//operation with the file.
This way, you
Hi Cecilia, I'm sending this again as the first message was sent only
to you (I hadn't realised that your own message was sent only to me as
well). If you want to reply please reply-all to this message.
On 1 October 2012 17:42, Cecilia Chavana-Bryant
cecilia.chav...@gmail.com wrote:
On Mon, Oct
On Sep 30, 2012 11:10 PM, Cecilia Chavana-Bryant
cecilia.chav...@gmail.com wrote:
Hola again Python Tutor!
Hi Cecilia
With a friend's help I have the following code to extract reflectance data
from an ASCII data file, do a bit of data manipulation to calibrate the data
and then write the
On Mon, Oct 1, 2012 at 12:33 AM, Alan Gauld alan.ga...@btinternet.comwrote:
On 30/09/12 23:07, Cecilia Chavana-Bryant wrote:
Hola again Python Tutor!
With a friend's help I have the following code to extract reflectance
data from an ASCII data file, do a bit of data manipulation to
On Mon, Oct 1, 2012 at 1:16 AM, Dave Angel d...@davea.name wrote:
On 09/30/2012 06:07 PM, Cecilia Chavana-Bryant wrote:
Hola again Python Tutor!
With a friend's help I have the following code to extract reflectance
data
from an ASCII data file, do a bit of data manipulation to calibrate
On 30/09/12 23:07, Cecilia Chavana-Bryant wrote:
Hola again Python Tutor!
With a friend's help I have the following code to extract reflectance
data from an ASCII data file, do a bit of data manipulation to calibrate
the data and then write the calibrated file into an out file.
snip
I have
On 09/30/2012 06:07 PM, Cecilia Chavana-Bryant wrote:
Hola again Python Tutor!
With a friend's help I have the following code to extract reflectance data
from an ASCII data file, do a bit of data manipulation to calibrate the
data and then write the calibrated file into an out file.
import
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
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'
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
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
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
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
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 st...@pearwood.infowrote:
Becky Mcquilling wrote:
If anyone is familiar with python-gnupg, I am having some difficulty with
the
On Sat, Mar 12, 2011 at 1:39 AM, Becky Mcquilling
ladymcse2...@gmail.com 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',
On Sat, Mar 12, 2011 at 2:07 AM, David Hutto smokefl...@gmail.com 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
Dear All,
I’m new in programming and I’m studying Python now. I use Python 3.1.2 and
learn from Dive Into Python 3 book (Mark Pilgrim, Thank you very much for
him). I’ve learned list, tuple, set, dictionary and little bit about
looping. I’m so confused about looping in first Python Program in
On 24 February 2011 14:52, pyhx0r pyh...@gmail.com wrote:
*Why do in my code, it loops to all values and not in Mark Pilgrim’s code?
*
Because in Mark's code the loop is terminated by the return statement
(contained in the utility function approximate_size().) In your code you've
removed the
On 01/-10/-28163 02:59 PM, pyhx0r wrote:
Dear All,
snip
multiple = 1024 if a_kilobyte_is_1024_bytes else 1000
for suffix in SUFFIXES[multiple]:
size /= multiple
if size multiple:
return '{0:.1f} {1}'.format(size, suffix)
snip
I’ve shorted the code
Dear All,
Thank you for your advise, it's helpful for me.
NB: To DaveA, It was copy-paste from my notepad so the indentation went
wrong :(
+---+--+---+
| py | h | x0r |
+---+--+---+
■ 1 3 0 E2 C 9 ■
___
Tutor maillist - Tutor@python.org
To
On 24 February 2011 16:22, Dave Angel da...@ieee.org wrote:
(Is there a reason you double-spaced all that code? It makes it very hard
to read, and quite difficult to quote, since I had to delete every other
line.)
For what it's worth the code came out perfectly fine on my email reader
On 02/24/2011 11:55 AM, Walter Prins wrote:
On 24 February 2011 16:22, Dave Angelda...@ieee.org wrote:
(Is there a reason you double-spaced all that code? It makes it very hard
to read, and quite difficult to quote, since I had to delete every other
line.)
For what it's worth the code
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
On Thu, 23 Sep 2010 03:17:39 pm ranjan das wrote:
What I want to do is write my code completely in Python (as gainst
iron python),
Iron Python *is* Python. It's just a different implementation, with
built-in support for Dot-Net.
copy it to the visual studio editor and create a web
based
Please Advise:
I need to run/execute python module in C#. I am using python 2.6 and visual
studio 10
Ranjan
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On Wed, Sep 22, 2010 at 7:55 AM, ranjan das ranjand2...@gmail.com wrote:
Please Advise:
I need to run/execute python module in C#. I am using python 2.6 and
visual studio 10
You should check out IronPython
http://www.ironpython.com/
http://www.ironpython.com/HTH,
Wayne
Hi Wayne,
Thanks for your reply. The problem is a bit more specific. I have come
across ironpython and I ran a test file and it works fine as far as the
wrapping is concerned.
What I want to do is write my code completely in Python (as gainst iron
python), copy it to the visual studio editor and
Hi,
I'm busy with this tutorial
http://www.openbookproject.net/thinkCSpy/index.html
I need some feedback and help to be able to learn Python.
For instance, now I'm working on chapter 8, 8.13 exercise 1, 2 and 3. Code
become pretty complex for me there:
Dave Angel wrote:
You will also need to get comfortable with the DOS box (Command Prompt,
whatever Vista calls it. It's probably in Start-Accessories). In a
DOS box, you could do a DIR of that directory, and see exactly what the
file is called. You also could invoke python or pythonw
Please,
I need help. I installed python on my gateway windows vista laptop computer.
This is with the latest version of python (Python 2.6.3 Windows installer)
Python 2.6.3 Windows installer
I have some python code files I placed on my desktop and tried placing it in a
folder containing
Victor Binns wrote:
Please,
I need help. I installed python on my gateway windows vista laptop computer.
This is with the latest version of python (Python 2.6.3 Windows installer)
Python 2.6.3 Windows installer
It's not the latest, but no problem. It's probably a good choice.
I have
86 matches
Mail list logo