Re: Problems with scripts

2017-02-13 Thread Steve D'Aprano
On Tue, 14 Feb 2017 03:30 am, lauren.sophia1...@gmail.com wrote: > Hello! I have 2 python assignments that I just can't figure out. The first > one returns the same thing no matter what I input and the second won't > accept "done" to stop the program and return answers. Please help! Hi Lauren,

Re: Problems with scripts

2017-02-13 Thread Wildman via Python-list
On Mon, 13 Feb 2017 10:08:11 -0800, Lauren Fugate wrote: > So I tried both of these and they didn't change anything, the python shell > printed the same things... The first assignment is overly complicated. The extra input functions are useless. There is no loopback to check the input. Also,

Re: Problems with scripts

2017-02-13 Thread alister
On Mon, 13 Feb 2017 10:08:11 -0800, Lauren Fugate wrote: > So I tried both of these and they didn't change anything, the python > shell printed the same things... No answers (answering you homework for you will not teach you anything useful) but some hints to help you think about the problem

Re: Problems with scripts

2017-02-13 Thread Lauren Fugate
So I tried both of these and they didn't change anything, the python shell printed the same things... -- https://mail.python.org/mailman/listinfo/python-list

Re: Problems with scripts

2017-02-13 Thread Lauren Fugate
So I changed my code to this: print("How old are you: 17, 18, 19, or 20?") answer = input("> ") if int(answer) == 17 or 18 or 19 or 20: print("Wow, you are old!") else: print("You just can't follow drections, can you? Choose either 17, 18, 19, or 20.") input("> ") and now if I

Re: Problems with scripts

2017-02-13 Thread Wildman via Python-list
On Mon, 13 Feb 2017 08:30:32 -0800, lauren.sophia1998 wrote: > Hello! I have 2 python assignments that I just can't figure out. The first > one returns the same thing no matter what I input and the second won't accept > "done" to stop the program and return answers. Please help! > > 1) >

Re: Problems with scripts

2017-02-13 Thread Joel Goldstick
On Mon, Feb 13, 2017 at 11:30 AM, wrote: > Hello! I have 2 python assignments that I just can't figure out. The first > one returns the same thing no matter what I input and the second won't accept > "done" to stop the program and return answers. Please help! > >

Problems with scripts

2017-02-13 Thread lauren . sophia1998
Hello! I have 2 python assignments that I just can't figure out. The first one returns the same thing no matter what I input and the second won't accept "done" to stop the program and return answers. Please help! 1) print("How old are you: 17, 18, 19, or 20?") answer = input("> ") if answer ==