[Tutor] python -v command

2008-05-02 Thread Stephanie
Hi, I'm at a very beginning level of Python knowledge, but I use several Python programs via the Macintosh Unix Terminal. I was trying to quickly see which version of Python I am running and typed in the command "python -v". That was obviously not the correct command to use. It installed several

Re: [Tutor] python -v command

2008-05-02 Thread Stephanie
Thank you to everyone for your help. I'm sorry to waste your time with such a silly question. I am now back up and running! I really appreciate your responses. On Fri, May 2, 2008 at 11:16 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 11:33 AM, Ste

[Tutor] creat a program that reads frequency of words in file

2015-06-01 Thread Stephanie Quiles
Hello. i need serious help. i am a very very new python programmer. I have never done any code in my life. I am lost with these assignments for a class i am taking. I hope someone can assist. below is what i have so far which i know is incorrect. my question is how do i create a dictionary and s

[Tutor] creating a dictionary for capital quiz program

2015-06-02 Thread Stephanie Quiles
Good evening, As you may have noticed i am really struggling with functions and dictionaries. I need to figure out why this program is allowing me to continue entering incorrect data instead of telling me my answer is incorrect. also at the end it’s not tallying the incorrect/correct responses

Re: [Tutor] creat a program that reads frequency of words in file

2015-06-02 Thread Stephanie Quiles
'Texas': 'Austin', 'Utah': 'Salt Lake City', \ \ 'Vermont': 'Montpelier', \ \ 'Virginia': 'Richmond', 'Washington': 'Olympia', \ \ 'W

Re: [Tutor] creating a dictionary for capital quiz program

2015-06-02 Thread Stephanie Quiles
Thank you all for your help! I have a text today but I am not confident with this. So basically, what I did wrong was the indentation? Thanks Stephanie Quiles Sent from my iPhone > On Jun 2, 2015, at 10:15 AM, Peter Otten <__pete...@web.de> wrote: > > ZBUDNIEWEK. JAKUB wro

Re: [Tutor] creating a dictionary for capital quiz program

2015-06-02 Thread Stephanie Quiles
What is the +k+ called? How exactly does it work? I'm a big confused on that... Stephanie Quiles Sent from my iPhone > On Jun 2, 2015, at 12:17 PM, Peter Otten <__pete...@web.de> wrote: > > Alan Gauld wrote: > >>> On 02/06/15 15:15, Peter Otten wrote: >

[Tutor] create class Pet

2015-06-16 Thread Stephanie Quiles
Hello, Having trouble figuring out why this program is not running. could someone please take a look and see where I am going wrong? Here is the error message i am getting : /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 /Users/stephaniequiles/PycharmProjects/untitled3/pets.py

Re: [Tutor] create class Pet

2015-06-16 Thread Stephanie Quiles
print("Pet Name: ", pet.get_name) print("Animal Type:", pet.get_animal_type) print("Age: ", pet.get_age) main() > On Jun 16, 2015, at 3:49 PM, Mark Lawrence wrote: > > On 16/06/2015 17:45, Stephanie Quiles wrote: >> Hello, Ha

Re: [Tutor] create class Pet

2015-06-17 Thread Stephanie Quiles
rence would be appreciated. I will review the code when I get home. Thanks Stephanie Quiles Sent from my iPhone > On Jun 17, 2015, at 3:40 AM, Alan Gauld wrote: > > On 16/06/15 21:15, Stephanie Quiles wrote: >>> sorry this is the correct error. > > >> File &quo

[Tutor] GUI program

2015-06-30 Thread Stephanie Quiles
Hello, i am attempting to create a GUI program using Python 3.4. please see the pasted code below. Why is nothing showing up? i am using Pycharm to run the program to see what it does and it says there are no errors but it does not show me an output. please let me know where i am falling short o

[Tutor] the big o

2015-07-28 Thread Quiles, Stephanie
with these since my fellow students are unwilling to help me with anything since they are far more advanced than i am. Thank you, Stephanie ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org

Re: [Tutor] the big o

2015-07-28 Thread Quiles, Stephanie
s but when the problems get a little more involved I get totally lost. Here is an example A+B/C*D-E+F I thought it was something like ABC/+ cd*ef+-?? That's probably wrong but I am trying Stephanie Quiles Sent from my iPhone > On Jul 28, 2015, at 10:07 AM, Joseph Lee wrote: >

[Tutor] infix to postfix exponent handling

2015-08-01 Thread Quiles, Stephanie
ceback (most recent call last): File "/Users/stephaniequiles/Downloads/Listings/listing_3_7.py", line 53, in print(infixToPostfix("5 * 3 ^ (4 - 2)")) File "/Users/stephaniequiles/Downloads/Listings/listing_3_7.py", line 45, in

[Tutor] email validation

2015-08-01 Thread Quiles, Stephanie
x27;open_existing_file' referenced before assignment Process finished with exit code 1 not sure why it is not recognizing that the open_existing_file() function needs to be returned to the “emails” variable? I am guessing it has to do with my syntax? any suggestions, please? Thank you

Re: [Tutor] email validation

2015-08-02 Thread Quiles, Stephanie
() This is the output: /Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 /Users/stephaniequiles/Downloads/emailsupdate.py {'maria': ['steph', 'sst', '33ed'], 'Jim': 'ththth@ththt', 'Ton': 'tomtomtomt@tomto

[Tutor] infix to postfix eval

2015-08-02 Thread Quiles, Stephanie
hello again! I have to unify these methods so that i can enter an infix, convert it to a postfix and then solve. Here are the methods method #1 is : class Stack: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def push(self, item):

Re: [Tutor] email validation

2015-08-02 Thread Quiles, Stephanie
e emails = {} # Load the dictionary try: infile = open("emails.dat", "rb") emails = pickle.load(infile) infile.close() except: print("No file to open. Starting with no data.") return emails main() Thanks Stephanie > On Au

[Tutor] find pickle and retrieve saved data

2015-08-02 Thread Quiles, Stephanie
rint("Entry not Found! Try again.") main() thanks for all the help and suggestions this is really helping me in trying to figure this out! Stephanie ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] email validation

2015-08-03 Thread Quiles, Stephanie
either. where should i insert them into the program to make it work? > On Aug 2, 2015, at 6:54 PM, Quiles, Stephanie > wrote: > > So i took your advice and i am much closer. however, when i type in an > invalid address it loops back to the first prompt and asks you to enter

Re: [Tutor] find pickle and retrieve saved data

2015-08-03 Thread Quiles, Stephanie
I'm trying to tell it to print everything under that particular name. I would have to def info, correct? But set it equal to what to make it work? Stephanie Quiles Sent from my iPhone > On Aug 3, 2015, at 3:12 AM, Alan Gauld wrote: > >> On 03/08/15 04:04, Quiles, Stephanie

[Tutor] palindrome using stack and queue

2015-08-04 Thread Quiles, Stephanie
pop() def size(self): return len(self.items) any help is always appreciated stephanie ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] find pickle and retrieve saved data

2015-08-04 Thread Quiles, Stephanie
9, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte Process finished with exit code 1 > On Aug 3, 2015, at 8:13 AM, Quiles, Stephanie > wrote: >

[Tutor] Fraction Class HELP ME PLEASE!

2015-08-06 Thread Quiles, Stephanie
Hello All, I need to do the following assignment. I need to know how do i hard code an example for each of the operators I am implementing? What i have so far is below? He said he does not care if we plug in some numbers or if we have user input numbers, however I am unsure of how to write a pr

Re: [Tutor] Fraction Class HELP ME PLEASE!

2015-08-06 Thread Quiles, Stephanie
("Is F1 different than F2?:", Fraction.__ne__(F1, F2)) print ("Is F1 same as F2?:", Fraction.__is__(F1, F2)) print("Is:", Fraction.__iadd__(F1, F2)) if __name__ == '__main__': main() > On Aug 6, 2015, at 5:44 PM, Cameron Simpson wrote: >

Re: [Tutor] Fraction Class HELP ME PLEASE!

2015-08-06 Thread Quiles, Stephanie
ction.__radd__(F1, F2)) print("Modulo of F1 and F2(this prints the remainder):", Fraction.__mod__(F1, F2)) print("Rshift( returns F1 shifted by F2:", Fraction.__rshift__(F1, F2)) if __name__ == '__main__': main() > On Aug 6, 2015, at 9:51 PM, Cameron S

[Tutor] generate random number list and search for number

2015-08-11 Thread Quiles, Stephanie
nt(1, list_range)) if random.randint(1, list_range) == find: print("Number Found.") else: print("not found") if __name__ == '__main__': main() Thank you so much in advance! Stephanie

[Tutor] Binary tree expressions

2015-08-18 Thread Quiles, Stephanie
^ its children would be * (left child) + (right child) Is that right so far? Thanks for your help in advance! The tutorials online are not quite as complicated so I get consider once you start adding in more operators. Stephanie Quiles Sent from my i

Re: [Tutor] Binary tree expressions

2015-08-19 Thread Quiles, Stephanie
ation Stephanie Quiles Sent from my iPhone > On Aug 19, 2015, at 2:41 AM, Alex Kleider wrote: > >> On 2015-08-18 07:36, Quiles, Stephanie wrote: >> Hello! >> Not sure if anyone can help me with these or not but here it goes... >> I have to draw an expression tree for the fo

[Tutor] Dividing a float derived from a string

2014-11-20 Thread Stephanie Morrow
Additionally, we are using 2.7, so that might change your answer. Thank you in advance for any help you can provide! -Stephanie ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Dividing a float derived from a string

2014-11-20 Thread Stephanie Morrow
rt a number: ") > > if input.isdigit(): > > print int(input) * 12 > > else: > > print False > > > > However, a colleague of mine pointed out that a decimal will return as > > False. > > > Hi St

Re: [Tutor] Dividing a float derived from a string

2014-11-21 Thread Stephanie Morrow
wrote: > On 20/11/14 21:20, Stephanie Morrow wrote: > > input = raw_input("Insert a number: ") >> if input.isdigit(): >> print int(input) * 12 >> else: >> print False >> >> /However/, a colleague of mine pointed out that a decimal wi

Re: [Tutor] Dividing a float derived from a string

2014-11-21 Thread Stephanie Morrow
This one worked! Thank you very much! :D On Fri, Nov 21, 2014 at 3:14 AM, Adam Jensen wrote: > On Thu, 20 Nov 2014 21:20:27 + > Stephanie Morrow wrote: > > > Hi there, > > > > I have been posed with the following challenge: > > > > "Create a

Re: [Tutor] While Loops: Coin Flip Game

2010-11-14 Thread Stephanie Dawn Samson
Thanks everyone! I should be using algorithms for even such programs at my level. The solution to reiterate the coin flip every time in the loop works. Thanks a lot! Dawn ___ Tutor maillist - Tutor@python.

Re: [Tutor] While Loops: Coin Flip Game :p:

2010-11-16 Thread Stephanie Dawn Samson
Greetings, As a thread starter, I thought I should write the rewritten code I got that others helped me get to, since this thread is still going on. # Coin Flips# The program flips a coin 100 times and then# tells you the number of heads and tailsimport random print "\a"print "\tWelcome to 'Coi