Re: [Tutor] Advanced python recommendations

2018-10-10 Thread boB Stepp
On Wed, Oct 10, 2018 at 12:09 PM Mats Wichmann wrote: > This is actually the concept of test driven development (TDD), which I'm > not a huge proponent of personally, but kind of useful for this: I'm curious: What are the things you find less than satisfactory for TDD? -- boB

Re: [Tutor] Advanced python recommendations

2018-10-10 Thread Mats Wichmann
On 10/10/2018 10:46 AM, Alan Gauld via Tutor wrote: > On 10/10/18 10:53, Mariam Haji wrote: >> ...my current challenge >> with the projects bit is how to pseudo-code and which approach to use as I >> am not very familiar with the entire python syntax and how I can use it > > And that's the whole

Re: [Tutor] Advanced python recommendations

2018-10-10 Thread Alan Gauld via Tutor
On 10/10/18 10:53, Mariam Haji wrote: >...my current challenge > with the projects bit is how to pseudo-code and which approach to use as I > am not very familiar with the entire python syntax and how I can use it And that's the whole point of doing projects. You need to really be comfortable

Re: [Tutor] Advanced python recommendations

2018-10-10 Thread Abdur-Rahmaan Janhangeer
apart from already said, see popular python projects, and read the source as you would read a book. you'll discover amazing tricks, it'll broaden your horizon. hanging around those who achieved a good level will make you level up. Abdur-Rahmaan Janhangeer Mauritius

Re: [Tutor] Advanced python recommendations

2018-10-10 Thread Mariam Haji
Thank you all for the above tips. I actually did python 2 a friend sent it to me. And my current challenge with the projects bit is how to pseudo-code and which approach to use as I am not very familiar with the entire python syntax and how I can use it and as well as python algorithms. So like I

Re: [Tutor] help please

2018-10-10 Thread Mirage Web Studio
You are using the same variable name twice. You may use "rivers" for the dict and "river" for values. Also use descriptive names for variables. For eg if you correct the above mistake, the next one will be this line for rivers in rivers.values(): print (rivers) and sorry for top positing.

Re: [Tutor] help please

2018-10-10 Thread Deepak Dixit
On Wed, Oct 10, 2018, 12:37 PM Michael Schmitt wrote: > To whom it may concern: > > > I am trying to teach myself Python and ran into a problem. This is my code > > > # name of rivers and country > > rivers = {'nile' : 'egypt', 'ohio' : 'US', 'rhine' : 'germany' } > > # prints river name > for

Re: [Tutor] help please

2018-10-10 Thread Abdur-Rahmaan Janhangeer
i think it should have been for river in rivers instead of for rivers in rivers Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] Advanced python recommendations

2018-10-10 Thread Mark Lawrence
On 10/10/18 02:22, boB Stepp wrote: On Tue, Oct 9, 2018 at 6:54 PM Mariam Haji wrote: Hi guys, I am on the last exercises of learn python the hard by Zed.A Shaw and I am looking for recommendations on what to follow next or what book to try next to advance my python skills to intermediate

Re: [Tutor] help please

2018-10-10 Thread Peter Otten
Michael Schmitt wrote: > To whom it may concern: > > > I am trying to teach myself Python and ran into a problem. This is my code > I am getting the following error > for rivers in rivers.values(): > AttributeError: 'str' object has no attribute 'values' > # prints river name > for rivers in

[Tutor] help please

2018-10-10 Thread Michael Schmitt
To whom it may concern: I am trying to teach myself Python and ran into a problem. This is my code # name of rivers and country rivers = {'nile' : 'egypt', 'ohio' : 'US', 'rhine' : 'germany' } # prints river name for rivers in rivers.keys(): print (rivers) #prints country for rivers in