Re: Need help please

2023-04-10 Thread Thomas Passin
On 4/10/2023 9:59 AM, Jack Gilbert wrote: I D/L 3.11.3, I can see it in CMD running W10 64bit I have IDL on my desktop, HOW do I get 3.11.3 on my desktop? If you mean "How can I create a shortcut to Python 3.11.3 on my desktop that opens an interactive Python session", here is one way: 1.

Re: Need help please

2023-04-10 Thread Sravan Kumar Chitikesi
use where cmd to find out the path of the binary and create a shortcut to that file on desktop Regards, *Sravan Chitikesi* AWS Solutions Architect - Associate On Mon, Apr 10, 2023 at 10:03 AM Jack Gilbert <00jhen...@gmail.com> wrote: > I D/L 3.11.3, I can see it in CMD > > running W10 64bit > >

Need help please

2023-04-10 Thread Jack Gilbert
I D/L 3.11.3, I can see it in CMD running W10 64bit I have IDL on my desktop, HOW do I get 3.11.3 on my desktop? Thanks Jack g -- https://mail.python.org/mailman/listinfo/python-list

Re: help, please, with 3.10.4 install

2022-05-30 Thread Dennis Lee Bieber
On Sat, 28 May 2022 21:11:00 -0500, Jack Gilbert <00jhen...@gmail.com> declaimed the following: >also, the same line: Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, >23:13:41) [MSC v.1929 64 bit (AMD64)] on win32 in CMD prompt > >for the life of me I can't figure out how to launch python?? >

Re: help, please, with 3.10.4 install

2022-05-30 Thread Mats Wichmann
On 5/28/22 20:11, Jack Gilbert wrote: > I downloaded 3.10.4 on a 64 bit , 8.1 > also, the same line: Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, > 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32 in CMD prompt > > for the life of me I can't figure out how to launch python?? Sounds like you'r

Re: help, please, with 3.10.4 install

2022-05-29 Thread dn
On 29/05/2022 14.11, Jack Gilbert wrote: > I downloaded 3.10.4 on a 64 bit , 8.1 > I can see IDLE shell 3.10.1, I see Python 3.10.4 (tags/v3.10.4:9d38120, Mar > 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32 > > also, the same line: Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, > 23:1

help, please, with 3.10.4 install

2022-05-29 Thread Jack Gilbert
I downloaded 3.10.4 on a 64 bit , 8.1 I can see IDLE shell 3.10.1, I see Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32 also, the same line: Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32 in CMD pro

Re: HELP Please, Python Program Help

2021-04-10 Thread dn via Python-list
On 10/04/2021 22.57, Joseph Roffey wrote: > Hi, Im looking for some help with my program, I have been set a task to make > a Strain Calculator. I need it to input two numbers, choosing either Metres > or Inches for the 'Change in Length' divided by the 'Original Length' which > can also be in Me

HELP Please, Python Program Help

2021-04-10 Thread Joseph Roffey
Hi, Im looking for some help with my program, I have been set a task to make a Strain Calculator. I need it to input two numbers, choosing either Metres or Inches for the 'Change in Length' divided by the 'Original Length' which can also be in Metres or Inches, the out put number also needs to g

Re: Help Please

2021-03-28 Thread D'Arcy Cain
On 2021-03-26 12:42 p.m., Igor Korot wrote: On top of that - usual stanza applies: 1. OS - Windows, Linux, Mac? 2. OS version? 3. Python version? 4. Are you able to run python interpretor? 5. Socks version you are trying to install? 6. Was install successful? 7. Use a subject that describes th

Re: Help Please

2021-03-26 Thread Igor Korot
Hi, On Fri, Mar 26, 2021 at 11:36 AM Anis4Games wrote: > Hello python support team , i need help about packages and python modules > > That Video Will Explain My Problem > Please don't send any attachment to the list - it will be dropped from the E-mail. Cut'n'paste any errors you receive dire

Help Please

2021-03-26 Thread Anis4Games
Hello python support team , i need help about packages and python modules That Video Will Explain My Problem The Problem : Is Im Installed [Socks] Alredy With Command => pip install socks But When i run some script using socks pack its show a error with message " import socks " no socks modules

Re: Help please installing Python on Windows 10

2018-10-04 Thread Sibylle Koczian
Am 03.10.2018 um 09:34 schrieb Timothy Cowell via Python-list: Could I please ask for help installing Python on Windows 10 - I've tried twice (Version 3.7 for windows) selecting the install now option. After first attempt I uninstalled and tried again. Each time it has put 4 items in the progr

Help please installing Python on Windows 10

2018-10-03 Thread Timothy Cowell via Python-list
Hi, Could I please ask for help installing Python on Windows 10 - I've tried twice (Version 3.7 for windows) selecting the install now option. After first attempt I uninstalled and tried again. Each time it has put 4 items in the programs list from the windows start button, all under headi

Re: I am new here and i need your help please

2017-07-26 Thread yasirrbadamasi
Thank you for your responses, i really appreciate -- https://mail.python.org/mailman/listinfo/python-list

Re: I am new here and i need your help please

2017-07-25 Thread Rustom Mody
On Wednesday, July 26, 2017 at 12:11:27 PM UTC+5:30, dieter wrote: > yasirrbadamasi: > > > I have never execute any program before using python and a task was given > > to me by my teacher > > I suggest to start by reading the Python tutorial: > "https://docs.python.org/3/tutorial/index.html";.

Re: I am new here and i need your help please

2017-07-25 Thread dieter
yasirrbadam...@gmail.com writes: > I have never execute any program before using python and a task was given to > me by my teacher I suggest to start by reading the Python tutorial: "https://docs.python.org/3/tutorial/index.html";. -- https://mail.python.org/mailman/listinfo/python-list

Re: I am new here and i need your help please

2017-07-25 Thread Wildman via Python-list
On Tue, 25 Jul 2017 00:48:25 -0700, yasirrbadamasi wrote: > I have never execute any program before using python and a task was given to > me by my teacher > ~ to write a python program to print my details and store in a third party > variables. > ~ the details include name, age, height, status

Re: I am new here and i need your help please

2017-07-25 Thread Steven D'Aprano
On Tue, 25 Jul 2017 00:48:25 -0700, yasirrbadamasi wrote: > I have never execute any program before using python and a task was > given to me by my teacher ~ to write a python program to print my > details and store in a third party variables. > ~ the details include name, age, height, status. so

I am new here and i need your help please

2017-07-25 Thread yasirrbadamasi
I have never execute any program before using python and a task was given to me by my teacher ~ to write a python program to print my details and store in a third party variables. ~ the details include name, age, height, status. so please your help is highly needed, thanks -- https://mail.pyth

Re: Working with dictionaries and keys help please!

2017-06-02 Thread Gregory Ewing
On Thu, 1 Jun 2017 10:29 am, David D wrote: Is there a way of performing this where the key will update so that is continues to work sequentially? It sounds like you don't want a dictionary at all, you want a list. You can use the index() method to find the current "key" of an entry. >>> peop

Re: Working with dictionaries and keys help please!

2017-06-01 Thread Steve D'Aprano
On Thu, 1 Jun 2017 10:29 am, David D wrote: > I have a dictionary with a 10 people, the key being a number (0-10) and the > value being the people's name. I am in the processing of Insert, Adding and > deleting from the dictionary. All seems well until I delete a person and add > a new one. The

Re: Working with dictionaries and keys help please!

2017-05-31 Thread David D
Learning about dictionaries for a database possibly in the future. On Wednesday, May 31, 2017 at 8:58:39 PM UTC-4, MRAB wrote: > On 2017-06-01 01:29, David D wrote: > > I have a dictionary with a 10 people, the key being a number (0-10) and the > > value being the people's name. I am in the proc

Re: Working with dictionaries and keys help please!

2017-05-31 Thread MRAB
On 2017-06-01 01:29, David D wrote: I have a dictionary with a 10 people, the key being a number (0-10) and the value being the people's name. I am in the processing of Insert, Adding and deleting from the dictionary. All seems well until I delete a person and add a new one. The numbers (ke

Working with dictionaries and keys help please!

2017-05-31 Thread David D
I have a dictionary with a 10 people, the key being a number (0-10) and the value being the people's name. I am in the processing of Insert, Adding and deleting from the dictionary. All seems well until I delete a person and add a new one. The numbers (keys) do not change and so I am getting

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
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, when I run the program it gives me

Re: trying to make a simple program help please :)

2016-10-14 Thread BartC
On 14/10/2016 19:53, LongHairLuke wrote: Den fredag 14 oktober 2016 kl. 20:30:20 UTC+2 skrev MRAB: On 2016-10-14 19:11, LongHairLuke wrote: Hi, l l am trying to make a simple guess program. This is my script: def main(): print ("Guess a letter between a and e") randomNumber = b us

Re: trying to make a simple program help please :)

2016-10-14 Thread Irmen de Jong
Right, another troll. plonk Irmen -- https://mail.python.org/mailman/listinfo/python-list

Re: trying to make a simple program help please :)

2016-10-14 Thread LongHairLuke
Den fredag 14 oktober 2016 kl. 20:30:20 UTC+2 skrev MRAB: > On 2016-10-14 19:11, LongHairLuke wrote: > > Hi, l l am trying to make a simple guess program. This is my script: > > > > def main(): > > print ("Guess a letter between a and e") > > randomNumber = b > > > > userGuess = input("

Re: trying to make a simple program help please :)

2016-10-14 Thread Irmen de Jong
On 14-10-2016 20:11, LongHairLuke wrote: > Hi, l l am trying to make a simple guess program. This is my script: > > def main(): > print ("Guess a letter between a and e") > randomNumber = b > > userGuess = input("Your guess: ") > > if userGuess == randomNumber: > print("You

Re: trying to make a simple program help please :)

2016-10-14 Thread MRAB
On 2016-10-14 19:11, LongHairLuke wrote: Hi, l l am trying to make a simple guess program. This is my script: def main(): print ("Guess a letter between a and e") randomNumber = b userGuess = input("Your guess: ") if userGuess == randomNumber: print("You got it") else: pr

trying to make a simple program help please :)

2016-10-14 Thread LongHairLuke
Hi, l l am trying to make a simple guess program. This is my script: def main(): print ("Guess a letter between a and e") randomNumber = b userGuess = input("Your guess: ") if userGuess == randomNumber: print("You got it") else: print ("That's not it") main() Wh

Re: Scripting Help please

2016-10-13 Thread Steven D'Aprano
On Thursday 13 October 2016 07:37, LongHairLuke wrote: > Hi l am on my way to make a bot for the game Piano Tiles 2. > But the code l have written so far saids invalid syntax at 2nd line. Here is > my code: Folks, look at the email address of the poster: trolleri.trollface at gmail.com He's pos

Re: Scripting Help please

2016-10-12 Thread Terry Reedy
On 10/12/2016 4:37 PM, LongHairLuke wrote: Hi l am on my way to make a bot for the game Piano Tiles 2. But the code l have written so far saids invalid syntax at 2nd line. Here is my code: If you want to write Python code, start by working through the tutorial included with the docs. -- Terr

Re: Scripting Help please

2016-10-12 Thread Wildman via Python-list
On Wed, 12 Oct 2016 20:48:31 +, alister wrote: > On Wed, 12 Oct 2016 13:37:23 -0700, LongHairLuke wrote: > >> Hi l am on my way to make a bot for the game Piano Tiles 2. >> But the code l have written so far saids invalid syntax at 2nd line. >> Here is my code: >> >> >> >> while True: >>

Re: Scripting Help please

2016-10-12 Thread alister
On Wed, 12 Oct 2016 13:37:23 -0700, LongHairLuke wrote: > Hi l am on my way to make a bot for the game Piano Tiles 2. > But the code l have written so far saids invalid syntax at 2nd line. > Here is my code: > > > > while True: >If active then > FFSnapShot(areaX, areaY + height - offs

Scripting Help please

2016-10-12 Thread LongHairLuke
Hi l am on my way to make a bot for the game Piano Tiles 2. But the code l have written so far saids invalid syntax at 2nd line. Here is my code: while True: If active then FFSnapShot(areaX, areaY + height - offsetBottom, areaX + width, areaY + height - offsetBottom, sid) For

Re: HELP PLEASE printing single characters!

2015-12-03 Thread Larry Hudson via Python-list
On 12/02/2015 04:08 PM, John Strick wrote: On Wednesday, December 2, 2015 at 12:58:30 PM UTC-6, Dylan Riley wrote: hi all, I have been trying to figure out all day why my code is printing single characters from my list when i print random elements using random.choice the elements in the list a

Re: HELP PLEASE printing single characters!

2015-12-02 Thread John Strick
On Wednesday, December 2, 2015 at 12:58:30 PM UTC-6, Dylan Riley wrote: > hi all, > I have been trying to figure out all day why my code is printing single > characters from my list when i print random elements using random.choice the > elements in the list are not single characters for example w

Re: HELP PLEASE printing single characters!

2015-12-02 Thread Ian Kelly
On Wed, Dec 2, 2015 at 1:44 PM, Dylan Riley wrote: > hi ian what would be the correct code to use in this situation then because > as far as i am aware the elements of my list should be printed as whole > elements and not just characters of the elements. order.append(choice) -- https://mail.py

Re: HELP PLEASE printing single characters!

2015-12-02 Thread Dylan Riley
On Wednesday, December 2, 2015 at 7:09:23 PM UTC, Ian wrote: > On Wed, Dec 2, 2015 at 12:58 PM, Dylan Riley wrote: > > hi all, > > I have been trying to figure out all day why my code is printing single > > characters from my list when i print random elements using random.choice > > the elements

Re: HELP PLEASE printing single characters!

2015-12-02 Thread Ian Kelly
On Wed, Dec 2, 2015 at 12:58 PM, Dylan Riley wrote: > hi all, > I have been trying to figure out all day why my code is printing single > characters from my list when i print random elements using random.choice the > elements in the list are not single characters for example when i print, > pri

HELP PLEASE printing single characters!

2015-12-02 Thread Dylan Riley
hi all, I have been trying to figure out all day why my code is printing single characters from my list when i print random elements using random.choice the elements in the list are not single characters for example when i print, print(LIST[random.choice]) i get: ["e", "x", "a", "m", "p", "l", "

Re: new to python, help please !!

2015-11-12 Thread Denis McMahon
On Wed, 11 Nov 2015 08:34:30 -0800, Anas Belemlih wrote: > i am a beginning programmer, i am trying to write a simple code to > compare two character sets in 2 seperate files. ( 2 hash value files > basically) Why? If you simply wish to compare two files, most operating systems provide executa

Re: new to python, help please !!

2015-11-12 Thread Denis McMahon
On Thu, 12 Nov 2015 17:55:33 +, Quivis wrote: > On Thu, 12 Nov 2015 13:58:35 +1100, Steven D'Aprano wrote: > >> horribly inefficient > > Assuming it was md5 values, who cares? Those are small. A file of 160 million md5 hashes as 32 character hex strings is a huge file. Your method calculat

Re: new to python, help please !!

2015-11-12 Thread Peter Otten
Tim Chase wrote: > On 2015-11-12 15:56, Peter Otten wrote: >> Tim Chase wrote: >> >> > with open("file1.md5") as a, open("file2.md5") as b: >> > for s1, s2 in zip(a, b): >> > if s1 != s2: >> > print("Files differ") >> >> Note that this will not detect extra lines in one of th

Re: new to python, help please !!

2015-11-12 Thread Tim Chase
On 2015-11-12 15:56, Peter Otten wrote: > Tim Chase wrote: > > > with open("file1.md5") as a, open("file2.md5") as b: > > for s1, s2 in zip(a, b): > > if s1 != s2: > > print("Files differ") > > Note that this will not detect extra lines in one of the files. > I recommend that

Re: new to python, help please !!

2015-11-12 Thread Peter Otten
Tim Chase wrote: > with open("file1.md5") as a, open("file2.md5") as b: > for s1, s2 in zip(a, b): > if s1 != s2: > print("Files differ") Note that this will not detect extra lines in one of the files. I recommend that you use itertools.zip_longest (izip_longest in Python 2)

Re: new to python, help please !!

2015-11-12 Thread paul.hermeneutic
Would some form of subprocess.Popen() on cmp or fc /b be easier? On Nov 12, 2015 7:13 AM, "Tim Chase" wrote: > On 2015-11-12 08:21, Marko Rauhamaa wrote: > > And if you really wanted to compare two files that are known to > > contain MD5 checksums, the simplest way is: > > > >with open('f1.md

Re: new to python, help please !!

2015-11-12 Thread Tim Chase
On 2015-11-12 08:21, Marko Rauhamaa wrote: > And if you really wanted to compare two files that are known to > contain MD5 checksums, the simplest way is: > >with open('f1.md5') as f1, open('f2.md5') as f2: >if f1.read() == f2.read(): >... >else: >... T

Re: new to python, help please !!

2015-11-11 Thread Marko Rauhamaa
Steven D'Aprano : > On Thursday 12 November 2015 04:48, Quivis wrote: > >> On Wed, 11 Nov 2015 08:34:30 -0800, Anas Belemlih wrote: >> >>> md5 >> >> If those are md5 values stored inside files, wouldn't it be easier to >> just hash them? >> >> import hashlib >> >> m1 = hashlib.sha224(open('f1'

Re: new to python, help please !!

2015-11-11 Thread Steven D'Aprano
On Thursday 12 November 2015 04:48, Quivis wrote: > On Wed, 11 Nov 2015 08:34:30 -0800, Anas Belemlih wrote: > >> md5 > > If those are md5 values stored inside files, wouldn't it be easier to > just hash them? > > import hashlib > > m1 = hashlib.sha224(open('f1').read()).hexdigest() > m2 = has

Re: new to python, help please !!

2015-11-11 Thread Ben Finney
Anas Belemlih writes: > i am a beginning programmer, i am trying to write a simple code to > compare two character sets in 2 seperate files. ( 2 hash value files > basically) Welcome, and congratulations on arriving at Python for your programming! As a beginning programmer, you will benefit f

Re: new to python, help please !!

2015-11-11 Thread Tim Chase
On 2015-11-11 08:34, Anas Belemlih wrote: > i am a beginning programmer, i am trying to write a simple code > to compare two character sets in 2 seperate files. ( 2 hash value > files basically) idea is: open both files, measure the length of > the loop on. > > if the length doesn't match, ==

Re: new to python, help please !!

2015-11-11 Thread John Gordon
In <93aef8e5-3d6f-41f4-a625-cd3c20076...@googlegroups.com> Anas Belemlih writes: > i=0 > s1=line1[i] > s2=line2[i] > count = 0 > if number1 != number2: > print " hash table not the same size" > else: > while count < number1: > if s1 == s2: > print " character", lin

new to python, help please !!

2015-11-11 Thread Anas Belemlih
i am a beginning programmer, i am trying to write a simple code to compare two character sets in 2 seperate files. ( 2 hash value files basically) idea is: open both files, measure the length of the loop on. if the length doesn't match, == files do not match if length matchs, loop while c

Re: help please: tkinter grid layout is very slow

2014-11-13 Thread Chris Angelico
On Fri, Nov 14, 2014 at 7:45 AM, Rich Cook wrote: > print "There are", numimages, "images" # 256 in fact... > for imagenum, (row, col) in enumerate([(row,col) for row in range(numrows) > for col in range(numcols)]): > b = Tkinter.Label(frame, compound = Tkinter.TOP) > b['text'] = os.path

Re: help please: tkinter grid layout is very slow

2014-11-13 Thread Terry Reedy
On 11/13/2014 3:45 PM, Rich Cook wrote: Hi, I'm trying to toss together an image browser in tkinter, and it is so slow it is unworkable. Here is my code. Can someone point out why it's so slw? :-) Thanks root = Tkinter.Tk() root.geometry("1000x280+300+300") label = Tkinter.Button(root,

help please: tkinter grid layout is very slow

2014-11-13 Thread Rich Cook
Hi, I'm trying to toss together an image browser in tkinter, and it is so slow it is unworkable. Here is my code. Can someone point out why it's so slw? :-) Thanks root = Tkinter.Tk() root.geometry("1000x280+300+300") label = Tkinter.Button(root, compound=Tkinter.TOP) label.pack() numim

Re: Development infrastructure - need python packaging gurus help, please

2014-01-28 Thread dieter
Eugene Sajine writes: > ... > Here is what i'm trying to achieve: > 1. I want to be able to specify the set of dependencies for the project i'm > currently developing and make them available for the import. Think java jar - > having it in class path allows for the code reuse (import packages pro

Development infrastructure - need python packaging gurus help, please

2014-01-28 Thread Eugene Sajine
Hi! I'm trying to create a development infrastructure that would allow for simple and unified ways of sharing, *deploying* and *reusing* the code within private entity. I can see that pip with virtual environments and requirements.txt is very similar to dependency management provided by maven o

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread MRAB
On 23/11/2013 22:29, Bhanu Karthik wrote:> On Saturday, 23 November 2013 14:23:08 UTC-8, Chris Angelico wrote: >> On Sun, Nov 24, 2013 at 9:15 AM, Bhanu Karthik >> wrote: >> > data = sock.recv(RECV_BUFFER) >> > username = str(sock.getpeername()) >> >

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread Chris Angelico
On Sun, Nov 24, 2013 at 9:39 AM, Bhanu Karthik wrote: > indentation is correct when I trying to paste it here,it is showing like it > is unindented. That's because Google Groups mucks things up. Get a better client. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread Bhanu Karthik
On Saturday, 23 November 2013 14:37:09 UTC-8, Roy Smith wrote: > In article <8445e47e-7efe-4f37-9b40-db2896d58...@googlegroups.com>, > > Bhanu Karthik wrote: > > > > > data = sock.recv(RECV_BUFFER) > > > username = str(sock.getpeername()) > > >

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread Chris Angelico
On Sun, Nov 24, 2013 at 9:33 AM, Bhanu Karthik wrote: > this is exact code.. > it is not even entering the if ... > I tried ( c= (data is '/quit')if c) > > when i print c ,its printing falseI dont understand what is > happening...please help.. Again, please get off Google Groups. Have a look

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread Roy Smith
In article <8445e47e-7efe-4f37-9b40-db2896d58...@googlegroups.com>, Bhanu Karthik wrote: > data = sock.recv(RECV_BUFFER) > username = str(sock.getpeername()) > username = usernames[username] > if data == "/quit"

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread Bhanu Karthik
On Saturday, 23 November 2013 14:23:08 UTC-8, Chris Angelico wrote: > On Sun, Nov 24, 2013 at 9:15 AM, Bhanu Karthik > > wrote: > > > data = sock.recv(RECV_BUFFER) > > > username = str(sock.getpeername()) > > > username = usernames[usern

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread Chris Angelico
On Sun, Nov 24, 2013 at 9:29 AM, Bhanu Karthik wrote: > sorry its not command its data > > I miss wrote it here... Okay. Start by copying and pasting your actual code, and saying what you're doing to trigger it. If this is a stream socket (eg TCP), you have no way of knowing where one read wi

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread Bhanu Karthik
On Saturday, 23 November 2013 14:23:08 UTC-8, Chris Angelico wrote: > On Sun, Nov 24, 2013 at 9:15 AM, Bhanu Karthik > > wrote: > > > data = sock.recv(RECV_BUFFER) > > > username = str(sock.getpeername()) > > > username = usernames[usern

Re: stuck at this from so much time,need help....please ..

2013-11-23 Thread Chris Angelico
On Sun, Nov 24, 2013 at 9:15 AM, Bhanu Karthik wrote: > data = sock.recv(RECV_BUFFER) > username = str(sock.getpeername()) > username = usernames[username] > if command == "/quit": >

stuck at this from so much time,need help....please ..

2013-11-23 Thread Bhanu Karthik
data = sock.recv(RECV_BUFFER) username = str(sock.getpeername()) username = usernames[username] if command == "/quit": print data sock.send("bye"

Re: Some python newb help please?

2013-11-12 Thread Chris Angelico
On Wed, Nov 13, 2013 at 10:04 AM, wrote: > Thanks a lot! I'll try this out! > Sorry to everyone else whose eyes I made bleed. I've never used a newsgroup > before...still not really sure what they are. Found this through a google > search :\ There's an easy fix. Go to this page: https://mail.

Re: Some python newb help please?

2013-11-12 Thread Denis McMahon
On Tue, 12 Nov 2013 14:14:42 -0800, lrwarren94 wrote: > http://pastebin.com/6QZTvx6Z Work through your code very very carefully. You're doing something in each if branch that you probably only want to do once in each execution of the while loop. If you can't figure it out, I'll post a correcte

Re: Some python newb help please?

2013-11-12 Thread lrwarren94
On Tuesday, November 12, 2013 4:56:35 PM UTC-6, MRAB wrote: > On 12/11/2013 22:27, l...@gmail.com wrote:> On Tuesday, November > > 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote: > > >> On 12/11/2013 22:14, lr@gmail.com wrote: > > >> > > >> > So I'm trying to write a program for a probl

Re: Some python newb help please?

2013-11-12 Thread Chris Angelico
On Wed, Nov 13, 2013 at 9:27 AM, wrote: > I'm not quite sure what you mean by that. it was on that pastebin link. I'll > post it again here though. it's no longer than half a page. Inline means what you did in this post. Out-of-line means providing us with a link to where the code is. This for

Re: Some python newb help please?

2013-11-12 Thread MRAB
On 12/11/2013 22:27, lrwarre...@gmail.com wrote:> On Tuesday, November 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote: >> On 12/11/2013 22:14, lr@gmail.com wrote: >> >> > So I'm trying to write a program for a problem in class, and something strange is happening that I can't figure out why i

Re: Some python newb help please?

2013-11-12 Thread Tim Chase
On 2013-11-12 14:27, lrwarre...@gmail.com wrote: > if int(raw_input()) == 1: > print "Moving north" > y = y + 1 > elif int(raw_input()) == 2: > print "Moving east" > x = x + 1 > elif int(raw_input()) == 3: > print "Moving south

Re: Some python newb help please?

2013-11-12 Thread Mark Lawrence
First thing would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython so we don't have to read double spaced google crap, thanks. On 12/11/2013 22:27, lrwarre...@gmail.com wrote: On Tuesday, November 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote: On 12/11/2013 22:

Re: Some python newb help please?

2013-11-12 Thread John Strick
Welcome to the world of Python programming! I'm glad you're learning this great language. As to your bug, think about this: in each if or elif statement, you're reading the user input again, so if user input is NOT equal to 1 in the first place, it reads input again. Try to step through your c

Re: Some python newb help please?

2013-11-12 Thread lrwarren94
On Tuesday, November 12, 2013 4:21:58 PM UTC-6, Mark Lawrence wrote: > On 12/11/2013 22:14, lr@gmail.com wrote: > > > So I'm trying to write a program for a problem in class, and something > > strange is happening that I can't figure out why is happening. I was > > wondering if you guys coul

Re: Some python newb help please?

2013-11-12 Thread Mark Lawrence
On 12/11/2013 22:14, lrwarre...@gmail.com wrote: So I'm trying to write a program for a problem in class, and something strange is happening that I can't figure out why is happening. I was wondering if you guys could help me fix it? http://pastebin.com/6QZTvx6Z Basically, 1 and 2 work just fi

Some python newb help please?

2013-11-12 Thread lrwarren94
So I'm trying to write a program for a problem in class, and something strange is happening that I can't figure out why is happening. I was wondering if you guys could help me fix it? http://pastebin.com/6QZTvx6Z Basically, 1 and 2 work just fine as inputs, but whenever I input 3 or 4, idle ju

Re: Help please, why doesn't it show the next input?

2013-09-13 Thread William Bryant
Thanks for the contructive critisism - :D I'll try fix it up! -- https://mail.python.org/mailman/listinfo/python-list

Re: Help please, why doesn't it show the next input?

2013-09-13 Thread MRAB
On 13/09/2013 23:12, William Bryant wrote: On Thursday, September 12, 2013 9:39:33 PM UTC+12, Oscar Benjamin wrote: On 12 September 2013 07:04, William Bryant wrote: > Thanks everyone for helping but I did listen to you :3 Sorry. This is my code, it works, I know it's not the best way to do i

Re: Help please, why doesn't it show the next input?

2013-09-13 Thread John Gordon
In <364bcdb3-fdd5-4774-b7d2-040e2ccb4...@googlegroups.com> William Bryant writes: > Hello, I've done this so far but why doesn't the mode function work? > def mode(): > global NumberOfXItems, Themode > for i in List: > NumberOfXItems.append(i) > NumberOfXItems.append(Lis

Re: Help please, why doesn't it show the next input?

2013-09-13 Thread William Bryant
On Thursday, September 12, 2013 9:39:33 PM UTC+12, Oscar Benjamin wrote: > On 12 September 2013 07:04, William Bryant wrote: > > > Thanks everyone for helping but I did listen to you :3 Sorry. This is my > > code, it works, I know it's not the best way to do it and it's the long way > > round b

Re: Help please, why doesn't it show the next input?

2013-09-12 Thread Oscar Benjamin
On 12 September 2013 07:04, William Bryant wrote: > Thanks everyone for helping but I did listen to you :3 Sorry. This is my > code, it works, I know it's not the best way to do it and it's the long way > round but it is one of my first programs ever and I'm happy with it: Hi William, I'm glad

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread William Bryant
Thanks everyone for helping but I did listen to you :3 Sorry. This is my code, it works, I know it's not the best way to do it and it's the long way round but it is one of my first programs ever and I'm happy with it: '''#*'

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread Jugurtha Hadjar
On 09/12/2013 02:08 AM, Jugurtha Hadjar wrote: Try this on your python prompt mystring = "ThIs Is ThE wAy SoMe StUpId PeOpLe WrItE i DoN't KnOw WhY!" mystring.lower() This should return: "You shouldn't treat people of stupid, but I feel your pain", or let's be more realistic: "this is th

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread Jugurtha Hadjar
On 09/11/2013 08:33 PM, William Bryant wrote: @Jugurtha Hadjar What does user_input.lower() mean/do? Hello, As did other people point out, it returns the lower case of a string. It's not user_input.lower(), it's any_string.lower() For example: Try this on your python prompt mystring = "T

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread Terry Reedy
On 9/11/2013 3:31 PM, William Bryant wrote: What is .lower() ? The Python docs have a pretty good index that includes 'lower() (str method)'. Learn to use it. If you know that .lower is a str method, >>> help(str.lower) at interactive prompt prints a page. Learn to use help(ob) also. --

RE: Help please, why doesn't it show the next input?

2013-09-11 Thread Prasad, Ramit
William Bryant wrote: > Sent: Wednesday, September 11, 2013 2:32 PM > To: python-list@python.org > Subject: Re: Help please, why doesn't it show the next input? > > @Dave Angel > > What is .lower() ? Thanks for bottom posting and trimming, but you should leave some

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread Dave Angel
On 11/9/2013 15:31, William Bryant wrote: > @Dave Angel > > What is .lower() ? It is a method on the str class. You could teach yourself. At the interpreter prompt, type help("test response".lower) Or on the web: http://docs.python.org/2/library/stdtypes.html#str.lower There are lots of

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread John Gordon
In William Bryant writes: > @Jugurtha Hadjar > What does user_input.lower() mean/do? String objects have a number of built-in functions, lower() being one of them. It returns a copy of the string with all uppercase letters converted to lowercase. Example: >>> x = "Hello There" >>> y

Re: Help please, why doesn't it show the next input?

2013-09-11 Thread William Bryant
@Dave Angel What is .lower() ? -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >