Re: I need help with making my claculator

2017-05-20 Thread Steve D'Aprano
follow this style of coding so can't help.) Chris is within his rights to refuse to run untrusted code downloaded over the internet. It's not even the security aspect: the code is fairly short, and doesn't appear to be obfuscated or do anything nasty. But its a matter of fairness:

Re: I need help with making my claculator

2017-05-20 Thread Chris Angelico
except: >>> display.set("Type an actual equation please!") >> >> >> Without any specific questions, you're not going to get anything more >> than a basic eyeballing of the code. > > > Try running the program. > > (I did that b

Re: I need help with making my claculator

2017-05-20 Thread bartc
to get anything more than a basic eyeballing of the code. Try running the program. (I did that but I can't follow this style of coding so can't help.) -- bartc -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with making my claculator

2017-05-19 Thread Chris Angelico
On Sat, May 20, 2017 at 11:40 AM, wrote: > def calc(self, display): > try: > display.set(eval(display.get())) > except: > display.set("Type an actual equation please!") Without any specific questions, you're not going to get anything more than a basic eyeballing of the co

Re: I need help with making my calculator

2017-05-19 Thread MRAB
On 2017-05-20 02:42, gars...@gmail.com wrote: m using Python 3.4.2 This is my code: from tkinter import* def iCalc(source, side): storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue") storeObj.pack(side=side, expand=YES, fill=BOTH) return storeObj def button (source,

I need help with making my calculator

2017-05-19 Thread garsink
m using Python 3.4.2 This is my code: from tkinter import* def iCalc(source, side): storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue") storeObj.pack(side=side, expand=YES, fill=BOTH) return storeObj def button (source, side, text, command=None): storeObj= B

I need help with making my claculator

2017-05-19 Thread gareths2017
Im using Python 3.4.2 This is my code: from tkinter import* def iCalc(source, side): storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue") storeObj.pack(side=side, expand=YES, fill=BOTH) return storeObj def button (source, side, text, command=None): storeObj= Button(s

Re: help with an error msg please

2017-05-14 Thread Charles T. Smith
On Sun, 14 May 2017 15:30:52 +0200, Pavol Lisy wrote: > On 5/14/17, Charles T. Smith wrote: >> I'm stumped by this: ... > Did you create getopt.py in your working directory? If so then try to > rename it. > > PL. That was it! Not in my working directory, but in the directory where the test p

Re: help with an error msg please

2017-05-14 Thread Pavol Lisy
On 5/14/17, Pavol Lisy wrote: > On 5/14/17, Charles T. Smith wrote: >> I'm stumped by this: > >> $ PYTHONPATH= python except >> Traceback (most recent call last): >> File "except", line 7, in >> except getopt.error, msg: >> AttributeError: 'module' object has no attribute 'error' >> >> >>

Re: help with an error msg please

2017-05-14 Thread Pavol Lisy
On 5/14/17, Charles T. Smith wrote: > I'm stumped by this: > $ PYTHONPATH= python except > Traceback (most recent call last): > File "except", line 7, in > except getopt.error, msg: > AttributeError: 'module' object has no attribute 'error' > > > The program is: > > $ cat except > #!/usr

Re: help with an error msg please

2017-05-14 Thread Lutz Horn
> $ PYTHONPATH= python except > Traceback (most recent call last): > File "except", line 7, in > except getopt.error, msg: > AttributeError: 'module' object has no attribute 'error' > > > The program is: > > $ cat except > #!/usr/bin/env python > > import getopt > > try: > opts, a

help with an error msg please

2017-05-14 Thread Charles T. Smith
I'm stumped by this: $ PYTHONPATH= python except Traceback (most recent call last): File "except", line 7, in except getopt.error, msg: AttributeError: 'module' object has no attribute 'error' The program is: $ cat except #!/usr/bin/env python import getopt try: opts, args = get

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2017-05-12 Thread Jason Friedman
> > >> The first section does not do what I think you want: a list with 7 > options. It makes a list with one option, then overwrites it with a new > list with one option, and so on. You want something like: > menu_list = [ > "O - open account" > "L - load details" > "D - display det

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2017-05-12 Thread Jason Friedman
> > menu_list = ["O -open account"] > menu_list =["l - load details"] > menu_list =["D- display details"] > menu_list =["A - Make deposit"] > menu_list =["W- Make withdraw",] > menu_list =["S - save"] > menu_list =["Q - quit"] > > command = input("command:") > if command.upper() == "O": > open_() >

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2017-05-12 Thread saisurya . ssa
count of the BankAccount class > > Please i need help on this i am a beginer into python programming. > > > Also below is a test case given for this project > > > import unittest > class AccountBalanceTestCases(unittest.TestCase): > def setUp(

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-03 Thread Stephen Tucker
To murdock: What Rhodri wrote is correct. I sense that it might be helpful for you if I were to tell you that there is a difference between a function and a function call. If your function were named MyFunction then print (MyFunction) would print a user-friendly-ish message about the function.

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-02 Thread Rhodri James
On 02/05/17 03:57, murdock wrote: I am having a problem that seems to persist. I have written a program that makes a mathematical calculation and uses a uses library that I have written. It had been working but somehow in playing around with it, it stoppedgo figure! But here is the thing,

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-02 Thread Steve D'Aprano
On Tue, 2 May 2017 12:57 pm, murdock wrote: > I am having a problem that seems to persist. I have written a program that > makes a mathematical calculation and uses a uses library that I have > written. It had been working but somehow in playing around with it, it > stoppedgo figure! But here

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread Gregory Ewing
murdock wrote: BW = float (input ("Enter the Receiver Bandwidth in Hz")) Signal_to_Noise = float (input ("Enter the Signal to Noise in dB")) RX_Sensitivity = float (input ("Enter the RX_Sensitivity in dBm")) # print ("The Receiver Noise Figure = ",Hamath._Noise_Figure," dBm" ) I

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread Michael Torrie
On 05/01/2017 08:57 PM, murdock wrote: > I am having a problem that seems to persist. I have written a program that > makes a mathematical calculation and uses a uses library that I have written. > It had been working but somehow in playing around with it, it stoppedgo > figure! But here is

Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread murdock
" dBm" ) if __name__ == '__main__': main() I am told that the error message is NOT an PyScripter error but in fact a Python message. But I can not find it anywhere in any of the documentation hence I have not been able to fix my problem. Any help would be appreciated. M -- https://mail.python.org/mailman/listinfo/python-list

Re: Python's help() function is awesome

2017-04-17 Thread Terry Reedy
On 4/17/2017 5:31 AM, Steve D'Aprano wrote: If you're not using the help() command in the interactive interpreter, you're missing out on a lot. I recently discovered that help() is even cleverer than I knew. I knew it picked up on objects' doc strings, but what happens i

Python's help() function is awesome

2017-04-17 Thread Steve D'Aprano
If you're not using the help() command in the interactive interpreter, you're missing out on a lot. I recently discovered that help() is even cleverer than I knew. I knew it picked up on objects' doc strings, but what happens if the object doesn't have a doc string? Let&#

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-17 Thread breamoreboy
On Friday, April 14, 2017 at 3:27:29 PM UTC+1, Kasper wrote: > every time i run the program i get this messeage: > > Traceback (most recent call last): > File "smartmirror.py", line 159, in get_weather > temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])), > degree_sign

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-14 Thread Terry Reedy
On 4/14/2017 10:27 AM, Kasper wrote: every time i run the program i get this messeage: Traceback (most recent call last): File "smartmirror.py", line 159, in get_weather temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])), degree_sign) KeyError: 'currently' Error: 'cu

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-14 Thread Peter Otten
Kasper wrote: > every time i run the program i get this messeage: > > Traceback (most recent call last): > File "smartmirror.py", line 159, in get_weather > temprature2 = "%S%S" % (str(int(weather_obj['currently'] ['temperature'])), > degree_sign) > KeyError: 'currently' > Error: 'currently

Re: Hi! i need some help with a program in python on Raspberry pi3.

2017-04-14 Thread Steve D'Aprano
our lap and expect us to debug it. If you can't spend the time simplifying the problem and removing all the irrelevant details, how can you expect us to do it for you? If you want help, make it easy for people to help you. Cut your code down to the simplest, shortest amount of code that demonstr

Hi! i need some help with a program in python on Raspberry pi3.

2017-04-14 Thread Kasper
every time i run the program i get this messeage: Traceback (most recent call last): File "smartmirror.py", line 159, in get_weather temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])), degree_sign) KeyError: 'currently' Error: 'currently'. Cannot get weather. How do i

Re: Need help with getting Key, Value out of dicts in lists

2017-04-10 Thread John Ralph
There are a number of ways to reorganise the data for the exclusive use of your script without affecting the original data. Is there a reason you can't or not allowed to do this? Regardless, here's some code that might make things a little easier. It operates on each balancer on the fly, redu

Re: Need help with getting Key, Value out of dicts in lists

2017-04-09 Thread Irv Kalb
;> >>> >>> >>>> On Apr 8, 2017, at 5:55 PM, Kenton Brede wrote: >>>> >>>> This is an example of the data I'm working with. The key/value pairs >> may >>>> come in any order. There are some keys like the 'Resource_

Re: Need help with getting Key, Value out of dicts in lists

2017-04-09 Thread Kenton Brede
rd', u'Key': 'Name'}, {u'Value': > 'kvmu', > >> u'Key': 'Billing'}, > >> {u'Value': '20179204-181622543367489', u'Key': > >> 'Resource_group_id

Re: Need help with getting Key, Value out of dicts in lists

2017-04-09 Thread Peter Otten
lue of 'Name' but that > only works if the 'Resource_group_id' key is the first key in the list and > the 'Name' key is in the second slot. If each list contained the same > keys, I could probably sort the keys and use [num] to pull back values, > but th

Re: Need help with getting Key, Value out of dicts in lists

2017-04-08 Thread Irv Kalb
'Value': '20179204-181622543367489', u'Key': >> 'Resource_group_id'}], >> [{u'Value': '20172857-152037106154311', u'Key': >> 'Resource_group_id'}, >> {u'Value': 'shibbo

Re: Need help with getting Key, Value out of dicts in lists

2017-04-08 Thread Irv Kalb
an do the following, to print the value of 'Name' but that > only works if the 'Resource_group_id' key is the first key in the list and > the 'Name' key is in the second slot. If each list contained the same > keys, I could probably sort the keys and us

Need help with getting Key, Value out of dicts in lists

2017-04-08 Thread Kenton Brede
e 'Name' key is in the second slot. If each list contained the same keys, I could probably sort the keys and use [num] to pull back values, but they don't. for a in alist: if a[0]['Key'] == 'Resource_group_id' and a[0]['Value'] == '20172857-152037106154311': print a[1]['Value'] There has to be a way to do this but I've been pounding away at this for hours. Any help appreciated. I'm new to Python and not a programmer, so go easy on me. :) -- https://mail.python.org/mailman/listinfo/python-list

Re: Request Help With pkexec

2017-04-05 Thread Wildman via Python-list
On Mon, 03 Apr 2017 14:29:56 -0500, Wildman wrote: > Python 3.4.2 > Tkinter 8.6 > GCC 4.9.1 on Linux > > I am working on a gui program using Tkinter. The program will > have a feature to restart as root. I am testing different gui > front-ends from a terminal to raise privileges and I want to >

Request Help With pkexec

2017-04-03 Thread Wildman via Python-list
Python 3.4.2 Tkinter 8.6 GCC 4.9.1 on Linux I am working on a gui program using Tkinter. The program will have a feature to restart as root. I am testing different gui front-ends from a terminal to raise privileges and I want to be able to use as many as possible for obvious reasons. Gksu, kdesu

Traversal help

2017-04-02 Thread R. Bryan Smith
lly complicated and changing with lot’s of different control and spacing characters, in addition to some odd (potentially non-unicode characters). Here’s the schema: http://json-schema.org/fraft-04/schema# <http://json-schema.org/fraft-04/schema#> I’m not a programmer, but I am lea

Re: Program Error Help - Python 3.1

2017-03-31 Thread Cameron Simpson
On 31Mar2017 16:12, 2019.cavanau...@fpsedu.org <2019.cavanau...@fpsedu.org> wrote: Hello I've been coding for about 1 or 2 months and i have encountered a problem with a 'while' statement. It keeps looping even when the statement is false, here is the code. The code is for a game that I'm maki

Re: Program Error Help - Python 3.1

2017-03-31 Thread Larry Martell
On Fri, Mar 31, 2017 at 4:16 PM <2019.cavanau...@fpsedu.org> wrote: > while answer8 != ("1") or answer8 != ("2"): This statement is always true. Think about it. > > -- https://mail.python.org/mailman/listinfo/python-list

Re: Program Error Help - Python 3.1

2017-03-31 Thread Terry Reedy
On 3/31/2017 7:12 PM, 2019.cavanau...@fpsedu.org wrote: Hello I've been coding for about 1 or 2 months If at all possible, start with 3.6, not 3.1. and i have encountered a problem with a 'while' statement. You should assume that your code is buggy. That is true even of experts. > It keep

Program Error Help - Python 3.1

2017-03-31 Thread 2019 . cavanaughc
Hello I've been coding for about 1 or 2 months and i have encountered a problem with a 'while' statement. It keeps looping even when the statement is false, here is the code. The code is for a game that I'm making that resembles the Oregon Trial. -Thanks for your help!

Need help generating Contour and HeatMap plots

2017-03-07 Thread Umar Yusuf
Hello house, I kindly need your input here >> http://stackoverflow.com/questions/42655870/matplotlib-convert-scatter-plot-to-contour-and-heatmap-plots -- https://mail.python.org/mailman/listinfo/python-list

Re: Help debugging code - Negative lookahead problem

2017-02-26 Thread michael . gauthier . uni
WOW, many thanks guys, Peter, and MRAB, for your time, help, and explanations! Peter, yes, you're right, when things get too complicated I should definitely try to split things up, and thus split the difficulties (ah, Descartes... ^^), thanks for the advice! MRAB, your code is now wo

Re: Help debugging code - Negative lookahead problem

2017-02-26 Thread MRAB
two digits of 101, so at least this is fine! : ) Any other idea to improve that code? I'm starting to get desperate... Thanks again for your help anyways, I really appreciate it! ; ) Ah, OK. I see what the problem is. (I should've marked it as "untested". :-() It match

Re: Help debugging code - Negative lookahead problem

2017-02-26 Thread Peter Otten
michael.gauthier@gmail.com wrote: > Hi MRAB, > > Thanks for taking time to look at my problem! > > I tried your solution: > > r"\d{2}\s?(?=(?:years old\s?|yo\s?|yr old\s?|y o\s?|yrs old\s?|year > old\s?)(?!son|daughter|kid|child))" > > but unfortunately it does seem not work. Also, I trie

Re: Help debugging code - Negative lookahead problem

2017-02-26 Thread michael . gauthier . uni
idea to improve that code? I'm starting to get desperate... Thanks again for your help anyways, I really appreciate it! ; ) -- https://mail.python.org/mailman/listinfo/python-list

Re: Help debugging code - Negative lookahead problem

2017-02-26 Thread MRAB
d in the string "I have a 12 yo son", and returns 12 as a matched age, which I don't want it to. I'm guessing this has something to do with brackets or delimiters at some point in the program, but I spent a few days on it, and I could not find anything helpful around here or on oth

Help debugging code - Negative lookahead problem

2017-02-26 Thread michael . gauthier . uni
12 as a matched age, which I don't want it to. I'm guessing this has something to do with brackets or delimiters at some point in the program, but I spent a few days on it, and I could not find anything helpful around here or on other forums, so any help would be appreciated. Thus, the

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-25 Thread Santhosh Kumar
7;t specify the path >> to the ImageMagick binary in file conf.py, or.that the path you specified >> is incorrect >> > > >> > > So... is ImageMagick installed? >> > > >> > > ChrisA >> > >> > Okay... Yes it's instal

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-23 Thread Billy Earney
you didn't specify the path > to the ImageMagick binary in file conf.py, or.that the path you specified > is incorrect > > > > > > So... is ImageMagick installed? > > > > > > ChrisA > > > > Okay... Yes it's installed. This probl

Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-22 Thread sntc99
sA > > Okay... Yes it's installed. This problem has been solved haha. Thank you for > replying. Hi Tony, same issue facing by me. kindly help me please list the solution -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Thanks! This helped me! -- https://mail.python.org/mailman/listinfo/python-list

Re: I need help with a game in (turtle graphics - python)

2017-02-22 Thread Peter Otten
Kasper wrote: > How can i make the score stop blinking The following part > #draws the score on the screen > mypen.undo() > mypen.penup() > mypen.hideturtle() > mypen.setposition(-290, 310) > scorestring1 = (name1 + ": %s" + " points ") %score1 > scorestring2 = (nam

I need help with a game in (turtle graphics - python)

2017-02-22 Thread Kasper
Hi! How can i make the score stop blinking and how can i make a high score table, in this game made with python? (this game is made on a Macbook) (there are some files in the game that i don't haven't copied into this file! like pyth.GIF)

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread Terry Reedy
both") This is too minimal. If I copy, paste, and run the above, it will fail. I will not guess what other code (which you should minimize) you actually had to make this run. See https://stackoverflow.com/help/mcve, which is *great* advice that most SO unfortunately ignore. I have trie

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread Wildman via Python-list
On Tue, 21 Feb 2017 18:22:31 +, MRAB wrote: > On 2017-02-21 18:02, Wildman via Python-list wrote: >> Python 3.4.2 >> Linux platform >> >> >> I am working on a program that has tabs created with ttk.Notebook. >> The code for creating the tabs is working but there is one thing I >> have not been

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread Wildman via Python-list
On Tue, 21 Feb 2017 12:02:50 -0600, Wildman wrote: > Python 3.4.2 > Linux platform > > > I am working on a program that has tabs created with ttk.Notebook. > The code for creating the tabs is working but there is one thing I > have not been able to figure out. As is, the tabs are located up > a

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread MRAB
On 2017-02-21 18:02, Wildman via Python-list wrote: Python 3.4.2 Linux platform I am working on a program that has tabs created with ttk.Notebook. The code for creating the tabs is working but there is one thing I have not been able to figure out. As is, the tabs are located up against the low

Request Help With ttk.Notebook Tabs

2017-02-21 Thread Wildman via Python-list
Python 3.4.2 Linux platform I am working on a program that has tabs created with ttk.Notebook. The code for creating the tabs is working but there is one thing I have not been able to figure out. As is, the tabs are located up against the lower edge of the caption bar. I would like to have them

Re: Python Events in 2017, Need your help.

2017-02-10 Thread Stefan Behnel
> > I like to know where there is a PyCon or a Django Conf or a PyData Event. > > In fact, I think we can help the Python Community if we submit all the > events in https://python.org/events. > > This page has been created by the PSF and is maintained by some volunteers. >

Re: Python Events in 2017, Need your help.

2017-02-08 Thread Stephane Wirtel via Python-list
Thank you, with your help, we have added events on the t-shirt. Now, Could you just add them on python.org/events ? Have a nice day, Stephane On 9 Jan 2017, at 10:54, Stephane Wirtel via Python-list wrote: Dear Community, For the PythonFOSDEM [1] on 4th and 5th February in Belgium, I would

Re: Beginner help

2017-02-05 Thread breamoreboy
On Sunday, February 5, 2017 at 11:27:19 PM UTC, pha...@u.rochester.edu wrote: > Hi everyone. I'm new to python and have hit a bit of a wall with an > assignment I'm working on. I created a number of classes and instantiated > them, now I need to create a list out of them. I am looking for somethi

Beginner help

2017-02-05 Thread phaas3
Hi everyone. I'm new to python and have hit a bit of a wall with an assignment I'm working on. I created a number of classes and instantiated them, now I need to create a list out of them. I am looking for something more elegant than appending each object to the list as I instantiate it. I tried

Re: any one used moviepy please come in!!! I need help, thanks!

2017-01-25 Thread Tony Chen
On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico wrote: > On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote: > > This error can be due to the fact that ImageMagick is not installed on your > > computer, or (for Windows users) that you didn't specify the path to the > > ImageMag

Re: How an editor can help with block nesting (was Re: How coding in Python is bad for you)

2017-01-25 Thread Ben Iannitelli
ed. Just moving the cursor up and down would show you what block everything is in. I don't know if any editors help like this -- that's part of my reason to ask. @Ben B.: Have you had a look at Notepad++? When it detects that you're editing a Python file, a ruler on the left-ha

Re: any one used moviepy please come in!!! I need help, thanks!

2017-01-24 Thread Chris Angelico
On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote: > This error can be due to the fact that ImageMagick is not installed on your > computer, or (for Windows users) that you didn't specify the path to the > ImageMagick binary in file conf.py, or.that the path you specified is > incorrect So... i

any one used moviepy please come in!!! I need help, thanks!

2017-01-24 Thread Tony Chen
I have to use moviepy in one of my project. So I downloaded it, and tried the example code on the website. It gives me this error. Anyone can give me some help? Thank you very much! it gives this error: [MoviePy] This command returned an error !Traceback (most recent call last): File "t

Re: How an editor can help with block nesting (was Re: How coding in Python is bad for you)

2017-01-24 Thread Dan Sommers
On Wed, 25 Jan 2017 12:31:11 +1100, Steve D'Aprano wrote: > But now I type something which cannot possibly be indented there: > > def func(a, b): > if condition: > spam() > elif something: | > > and hit ENTER again. There's nothing ambiguous about this, and th

Re: How an editor can help with block nesting (was Re: How coding in Python is bad for you)

2017-01-24 Thread Chris Angelico
On Wed, Jan 25, 2017 at 12:31 PM, Steve D'Aprano wrote: >> With my JavaScript students, the greatest help is probably a keystroke >> beautifier. You edit your code with sloppy indentation, and then bam, >> it reindents for you. > > Really? I wouldn't want that

Re: How an editor can help with block nesting (was Re: How coding in Python is bad for you)

2017-01-24 Thread Steve D'Aprano
t, I'd *only* colour the currently edited block, by marking the margins with a subtle colour. You know how many GUI editors highlight the current line with a faint colour? Something similar. You could make the colour different for each block, I guess, if you wanted to be fancy. > With my JavaSc

How an editor can help with block nesting (was Re: How coding in Python is bad for you)

2017-01-24 Thread Chris Angelico
On Wed, Jan 25, 2017 at 6:31 AM, Ben Bacarisse wrote: > I'm not talking about detecting errors -- that's for the programmer -- > but the editor can help the programmer to be sure they wrote what they > meant by doing things like matching brackets and auto-indenting code in &g

need help getting error when trying selenium with python

2017-01-12 Thread Ansuman Suryaprakash
sage: Can not connect to the Service geckodriver Can someonr help me with getting rid of the above error -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with this code

2017-01-10 Thread jladasky
On Monday, January 9, 2017 at 12:50:11 PM UTC-8, Joaquin Alzola wrote: > >> elements. For example, if we have a list_a=["a","b","c","d"] and > >> list_b=["a","b"] I want to obtain a new list_c containing elements that > >> match between these lists (a and b here), > > >Perhaps this might work: >

Re: [PSF-Community] Python Events in 2017, Need your help.

2017-01-09 Thread Danny Adair
In fact, I have noted that we know some big events in the Python community > (for example: PyCon US and EuroPython) but do you know the others events, > maybe the local event, PyCon IE, PyCon UK or PyCon IT. > > I like to know where there is a PyCon or a Django Conf or a PyData Event. > &g

RE: Help with this code

2017-01-09 Thread Joaquin Alzola
>> elements. For example, if we have a list_a=["a","b","c","d"] and >> list_b=["a","b"] I want to obtain a new list_c containing elements that >> match between these lists (a and b here), >Perhaps this might work: list(set(list_a).intersection(set(list_b))) >['a', 'b'] >>> list_a={"a","b","

Re: Help with this code

2017-01-09 Thread Joel Goldstick
On Mon, Jan 9, 2017 at 1:02 PM, Gilmeh Serda wrote: > On Mon, 09 Jan 2017 05:08:51 -0800, José Manuel Suárez Sierra wrote: > >> elements. For example, if we have a list_a=["a","b","c","d"] and >> list_b=["a","b"] I want to obtain a new list_c containing elements that >> match between these lists (

Re: Help with this code

2017-01-09 Thread Peter Otten
José Manuel Suárez Sierra wrote: > This is the traceback: > line 18, in > for transf2[j] in transf2: > IndexError: list assignment index out of range > > If I have initialized j=0 (such as i) why does it not work? A for loop for x in y: ... sequentually assigns every value in y to x. So wi

Re: Help with this code

2017-01-09 Thread José Manuel Suárez Sierra
El lunes, 9 de enero de 2017, 14:09:09 (UTC+1), José Manuel Suárez Sierra escribió: > Hello, I am trying to make a code wich compares between 2 or several > sequences (lists). It compares every element in a list with another list > elements. For example, if we have a list_a=["a","b","c","d"] an

Re: Help with this code

2017-01-09 Thread José Manuel Suárez Sierra
El lunes, 9 de enero de 2017, 14:09:09 (UTC+1), José Manuel Suárez Sierra escribió: > Hello, I am trying to make a code wich compares between 2 or several > sequences (lists). It compares every element in a list with another list > elements. For example, if we have a list_a=["a","b","c","d"] an

Re: Help with this code

2017-01-09 Thread Peter Otten
thing that should only occur e. g. for the body of a while-loop, not at random places like the j = j+1 that follows the ordinary statement c1.append(a[i]) Note that once you have fixed your code in this place you will run into another error. Read the traceback carefully and try to figure out what&#x

RE: Help with this code

2017-01-09 Thread Deborah Swanson
José Manuel Suárez Sierra wrote, on January 09, 2017 5:09 AM > > Hello, I am trying to make a code wich compares between 2 or > several sequences (lists). It compares every element in a > list with another list elements. For example, if we have a > list_a=["a","b","c","d"] and list_b=["a","b"]

Help with this code

2017-01-09 Thread José Manuel Suárez Sierra
Hello, I am trying to make a code wich compares between 2 or several sequences (lists). It compares every element in a list with another list elements. For example, if we have a list_a=["a","b","c","d"] and list_b=["a","b"] I want to obtain a new list_c containing elements that match between the

Python Events in 2017, Need your help.

2017-01-09 Thread Stephane Wirtel via Python-list
e big events in the Python community (for example: PyCon US and EuroPython) but do you know the others events, maybe the local event, PyCon IE, PyCon UK or PyCon IT. I like to know where there is a PyCon or a Django Conf or a PyData Event. In fact, I think we can help the Python Community

Re: I need a lot of help...

2016-12-25 Thread Peter Otten
Peter Otten wrote: > raulmaqueda6...@gmail.com wrote: > >> I do not know how to do this exercise, does anyone help me? >> >> Define the matrix_range (m) function that returns the range of an array >> calculated by the Gaussian method. >> >> It shoul

Re: I need a lot of help...

2016-12-24 Thread Paul Rubin
Peter Pearson writes: > I don't know any definition of "matrix range" that fits this description. > Is it possible that someone means "rank"? Yes, the rank is the dimension of the range unless I'm mistaken. I think rank is what was meant. To find the rank with Gaussian elimination, I guess you

Re: I need a lot of help...

2016-12-24 Thread Peter Pearson
On Sat, 24 Dec 2016 02:27:05 -0800 (PST), raulmaqueda6...@gmail.com wrote: > I do not know how to do this exercise, does anyone help me? > > Define the matrix_range (m) function that returns the range of an > array calculated by the Gaussian method. > > It should work with any

Re: I need a lot of help...

2016-12-24 Thread Phil Boutros
raulmaqueda6...@gmail.com wrote: > I do not know how to do this exercise, does anyone help me? If you have a specific, precise question, that's one thing. Otherwise: http://lmgtfy.com/?q=Academic+Dishonesty Phil -- AH#61 Wolf#14 BS#89 bus#1 CCB#1 SENS KOTC#4 h...@philb.

Re: I need a lot of help...

2016-12-24 Thread Peter Otten
raulmaqueda6...@gmail.com wrote: > I do not know how to do this exercise, does anyone help me? > > Define the matrix_range (m) function that returns the range of an array > calculated by the Gaussian method. > > It should work with any number of rows and columns. No punctuati

Re: I need a lot of help...

2016-12-24 Thread raulmaqueda6398
El sábado, 24 de diciembre de 2016, 11:27:16 (UTC+1), raulmaq...@gmail.com escribió: > I do not know how to do this exercise, does anyone help me? > > Define the matrix_range (m) function that returns the range of an array > calculated by the Gaussian method. > > It sh

I need a lot of help...

2016-12-24 Thread raulmaqueda6398
I do not know how to do this exercise, does anyone help me? Define the matrix_range (m) function that returns the range of an array calculated by the Gaussian method. It should work with any number of rows and columns. No punctuation will be given to deliveries that do not respect this

Re: Help in creating a dynamic/loop based on variables and CSV files

2016-12-11 Thread Peter Otten
Umar Yusuf wrote: > Hi all, > I need your help with any of these questions? > > 1- > http://stackoverflow.com/questions/41083699/python-create-dynamic-loop-based-on-variables-and-csv You should really make a serious attempt to explain the problem in plain english. Throwing a p

Help in creating a dynamic/loop based on variables and CSV files

2016-12-10 Thread Umar Yusuf
Hi all, I need your help with any of these questions? 1- http://stackoverflow.com/questions/41083699/python-create-dynamic-loop-based-on-variables-and-csv 2- http://stackoverflow.com/questions/41081800/python-pandas-how-to-use-dataframe-cell-to-search-another-dataframe-column-and Thanks in

Re: Request Help With Byte/String Problem

2016-12-03 Thread Wildman via Python-list
On Fri, 02 Dec 2016 19:39:39 +, Grant Edwards wrote: > On 2016-12-02, Wildman via Python-list wrote: >> On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote: >> >>> I don't know what the "addr" array contains, but if addr is a byte >>> string, then the "int()" call is not needed, in Python

Re: Request Help With Byte/String Problem

2016-12-02 Thread Grant Edwards
On 2016-12-02, Wildman via Python-list wrote: > On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote: > >> I don't know what the "addr" array contains, but if addr is a byte >> string, then the "int()" call is not needed, in Pythong 3, a byte is >> already an integer: >> >> def format_ip(a

Re: Request Help With Byte/String Problem

2016-12-02 Thread Wildman via Python-list
On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote: > I don't know what the "addr" array contains, but if addr is a byte > string, then the "int()" call is not needed, in Pythong 3, a byte is > already an integer: > > def format_ip(a): >return '.'.join(str(b) for b in a) > > add

Re: Request Help With Byte/String Problem

2016-12-02 Thread Grant Edwards
On 2016-12-02, Wildman via Python-list wrote: > On Wed, 30 Nov 2016 14:39:02 +0200, Anssi Saari wrote: > >> There'll be a couple more issues with the printing but they should be >> easy enough. > > I finally figured it out, I think. I'm not sure if my changes are > what you had in mind but it is

Re: Request Help With Byte/String Problem

2016-12-01 Thread Wildman via Python-list
On Wed, 30 Nov 2016 14:39:02 +0200, Anssi Saari wrote: > There'll be a couple more issues with the printing but they should be > easy enough. I finally figured it out, I think. I'm not sure if my changes are what you had in mind but it is working. Below is the updated code. Thank you for not gi

Re: Request Help With Byte/String Problem

2016-12-01 Thread Wildman via Python-list
On Wed, 30 Nov 2016 07:54:45 -0500, Dennis Lee Bieber wrote: > On Tue, 29 Nov 2016 22:01:51 -0600, Wildman via Python-list > declaimed the following: > >>I really appreciate your reply. Your suggestion fixed that >>problem, however, a new error appeared. I am doing some >>research to try to fi

Re: Error In querying Genderize.io. Can someone please help

2016-12-01 Thread John Gordon
In handa...@gmail.com writes: > import requests > import json > names={'katty','Shean','Rajat'}; > for name in names: > request_string="http://api.genderize.io/?"+name > r=requests.get(request_string) > result=json.loads(r.content) You're using http: instead of https:, and you're us

<    5   6   7   8   9   10   11   12   13   14   >