Re: [Tutor] if you're interested in the code thus far...

2014-10-27 Thread Peter Otten
Clayton Kirkwood wrote: > Good eyes on the logic > > > !-Original Message- > !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On > !Behalf Of Peter Otten > !Sent: Sunday, October 26, 2014 3:53 AM > !To: tutor@python.org > !Subject: Re: [Tut

Re: [Tutor] if you're interested in the code thus far...

2014-10-27 Thread Alan Gauld
On 27/10/14 03:17, Clayton Kirkwood wrote: get_new_list = True print(values) #[('a', 'Ask'), ('y', 'Dividend Yield')] while get_new_list: key_list = input('Please enter space separated keys in the order you want: ').split() print(key_list)#['a', 'y']

Re: [Tutor] if you're interested in the code thus far...

2014-10-27 Thread Clayton Kirkwood
!-Original Message- !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On !Behalf Of Alan Gauld !Sent: Sunday, October 26, 2014 5:34 PM !To: tutor@python.org !Subject: Re: [Tutor] if you're interested in the code thus far... ! !On 26/10/14 22:12, Clayton Kirkwood

Re: [Tutor] if you're interested in the code thus far...

2014-10-26 Thread Alan Gauld
On 26/10/14 22:12, Clayton Kirkwood wrote: !On 25/10/14 23:46, Clayton Kirkwood wrote: !> __author__ = 'SYSTEM' ! !You are still setting __author__ which is a bit suspect. !Leave double underscores to python. This is something being created when I started with this file. How are you creating

Re: [Tutor] if you're interested in the code thus far...

2014-10-26 Thread Clayton Kirkwood
!-Original Message- !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On !Behalf Of Alan Gauld !Sent: Sunday, October 26, 2014 2:11 AM !To: tutor@python.org !Subject: Re: [Tutor] if you're interested in the code thus far... ! !On 25/10/14 23:46, Clayton Kirkwood

Re: [Tutor] if you're interested in the code thus far...

2014-10-26 Thread Clayton Kirkwood
Good eyes on the logic !-Original Message- !From: Tutor [mailto:tutor-bounces+crk=godblessthe...@python.org] On !Behalf Of Peter Otten !Sent: Sunday, October 26, 2014 3:53 AM !To: tutor@python.org !Subject: Re: [Tutor] if you're interested in the code thus far... ! !Clayton Kir

Re: [Tutor] if you're interested in the code thus far...

2014-10-26 Thread Peter Otten
Clayton Kirkwood wrote: > for description_position, code_position in zip(description, code): > description_position_len = len(description_position) > current_output_pos += description_position_len > if current_output_pos >= output_line_len: > print(description_output_string) >

Re: [Tutor] if you're interested in the code thus far...

2014-10-26 Thread Alan Gauld
On 25/10/14 23:46, Clayton Kirkwood wrote: __author__ = 'SYSTEM' You are still setting __author__ which is a bit suspect. Leave double underscores to python. import string You are still importing string twice, and you don't use it anywhere that I can see. #PricingDividends