Re: [Tutor] Q about .join() Thanks!

2017-02-14 Thread Joaquin Alzola
>I find out that the outcome for using .join() on a dictionary is totally >different than it using on list or string. for example, > >>> seq4 = {'hello':1,'good':2,'boy':3,'doiido':4} > >>> > boy:good:doiido:hello >So my question is why the outco

Re: [Tutor] Help

2017-02-10 Thread Joaquin Alzola
>Please assist with this assignment >Write a function my_sort which takes in a list of numbers (positive >integers). >The function should return a list of sorted numbers such that odd numbers >come first and even numbers come last. You can search for even or odd numbers with the modulo (%) opera

Re: [Tutor] Created Function, Need Argument to be a String

2016-12-17 Thread Joaquin Alzola
>--- >Error from interpreter: (looks like it's taking issue with it being a >number it doesn't know how to deal with) > ip_checker(169.254.0.1) > File "", line 1 > ip_checker(169.254.0.1) >^ >SyntaxError: invalid syntax >

Re: [Tutor] unknown syntax error

2016-12-17 Thread Joaquin Alzola
>hey i dont know if this is the right place but i was just coding in idle and >kept getting this syntax error and i can not see m to fix it here is my bit of >code: > if age == my_age: > print("i'm",age,"too") > else: > if age < 14: > print(" i'm older

Re: [Tutor] Help with Python Queue

2016-11-26 Thread Joaquin Alzola
>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 (

Re: [Tutor] Fwd: IndentationError: unexpected indent

2016-11-09 Thread Joaquin Alzola
>Subject: [Tutor] Fwd: IndentationError: unexpected indent You are using a mixture of space and tabs or number of spaces. The exception give you the line that has the problem. --- Joaquin This email is confidential and may be subject to privilege. If you are not the intended recipient, please do

Re: [Tutor] nosetests on travis-ci.org

2016-11-01 Thread Joaquin Alzola
>python-l...@python.org >also available on Usenet as comp.lang.python, as it tends to have people >with a much broader range of experience than here. But even there, >you'll probably be asked to come up with a minimum example that >demonstrates the problem: Also try on IRC chat.freenode.net Th

Re: [Tutor] Python

2016-10-24 Thread Joaquin Alzola
>Hi! I have a function that I want to plot depending on a parameter (’a’), I >looked in the beginners guide but couldn’t fint what I wanted. I know how to >put the axis etc. but I don’t know how to involve my function which is >V=-(ba^-1 + ca^2) where I have >different values for b and c, so the

Re: [Tutor] Basic telnet question

2016-09-25 Thread Joaquin Alzola
>$ telnet localhost 7356 >The client then responds with: >Trying 127.0.0.1... >Connected to localhost. >Escape character is '^]'. Why not use the socket module? -- Joaquin This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or

Re: [Tutor] global interpreter lock

2016-09-15 Thread Joaquin Alzola
> Can someone explain global interpreter lock with some source code examples? Watch this youtube video. Gilectomy https://www.youtube.com/watch?v=fgWUwQVoLHo -- Joaquin This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or dis

Re: [Tutor] Hello!

2016-09-09 Thread Joaquin Alzola
> I don't know if i'm sending the email to the right address but here it goes!. > Would Python be a suitable language for first time learners like me? I suppose it depends on each one but from my experience I try with C and then Java without finding the feeling for it ... Then I learn python o

Re: [Tutor] I Need Help

2016-08-24 Thread Joaquin Alzola
>I want the elements of ft to increment by one while I use it to generate the >subsequent element. But for some reasons I don't understand, it keeps changing >the second element in Ft. >yt = [1,2,3,4,5,6] >ft = [yt[0],yt[0]] >alpha = 0.5 >while len(ft) != len(yt) + 1: >ft.append(ft[1] + al

Re: [Tutor] Where is win32print in Windows 10 Pro

2016-08-12 Thread Joaquin Alzola
>import win32print >ImportError: No module named win32print That module doesn't exist on your python path 'pywin32' is its canonical name. http://sourceforge.net/projects/pywin32/ For the same question: https://mail.python.org/pipermail/python-list/2015-July/693402.html This email is confiden

Re: [Tutor] install issues - third party modules

2016-08-11 Thread Joaquin Alzola
> I get the following errors: You need to put the text error not the snapshot. This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose its content but contact the sender immediately upon receipt. ___

Re: [Tutor] Variables

2016-08-03 Thread Joaquin Alzola
>I'm trying to write a program w/ python that runs once a day and every time it >does it adds 20 to a variable. How do I do this so it doesn't reset the >variable to the original value every time I run it? You can output the value to a file? Then re-read the file once a day and assign that val

Re: [Tutor] Variables

2016-08-02 Thread Joaquin Alzola
>Also, lookup cron. It will start your program at a certain time you select, >every day Linux system "crontab -l" to edit it "crontab -e" Any doubts "man crontab" This email is confidential and may be subject to privilege. If you are not the intended recipient, please do not copy or disclose

Re: [Tutor] Need Your help

2016-07-20 Thread Joaquin Alzola
>I'm creating a mobile application [ http://e-aadhaarcard.in ] and I'm using >python for a desktop server. However, I don't have access to a static IP on >the desktop, but do have a website. Is it possible to connect from mobile http >website -> desktop server >and back? Try using a LAN so all

Re: [Tutor] Opening EOS-5 HDF file - help!

2016-06-24 Thread Joaquin Alzola
>ImportError: No module named matplotlib Seems as the matplotlib is not install. Did you check the output at installation? Check matplotlib web since you need certain packages before installing the matplotlib itself. http://matplotlib.org/users/installing.html Check Required Dependencies. This

Re: [Tutor] Fwd: : Turtle

2016-06-24 Thread Joaquin Alzola
I tested with 2.6 and it works. >/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python2.5 >"/Users/Hershel/PycharmProjects/Project 1/practicefornotturtle.py" >Traceback (most recent call last): > File "/Users/Hershel/PycharmProjects/Project 1/practicefornotturtle.py", > line 2, i

Re: [Tutor] install python without root access

2016-03-22 Thread Joaquin Alzola
The easiest way will be to get in contact with the SysAdmin and tell him why you need python upgrade. He can allocate both version for you. -Original Message- From: Tutor [mailto:tutor-bounces+joaquin.alzola=lebara@python.org] On Behalf Of Anshu Kumar Sent: 22 March 2016 05:53 To: tu