>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
>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
>---
>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
>
>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
>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 (
>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
>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
>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
>$ 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
> 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
> 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
>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
>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
> 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.
___
>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
>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
>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
>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
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
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
20 matches
Mail list logo