Skip to content

session03 List Lab Homework#25

Merged
PythonCHB merged 7 commits into
UWPCE-PythonCert:masterfrom
jerrytozhang:master
Oct 17, 2014
Merged

session03 List Lab Homework#25
PythonCHB merged 7 commits into
UWPCE-PythonCert:masterfrom
jerrytozhang:master

Conversation

@jerrytozhang

Copy link
Copy Markdown
Contributor

No description provided.

@jerrytozhang jerrytozhang changed the title session02 List Lab Homework session03 List Lab Homework Oct 16, 2014

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should be able to do this without keeping the index:
for f in fruit3:
if fruit3 != str2:
append(f)

a bit cleaner....

@PythonCHB

Copy link
Copy Markdown
Contributor

Pull request looks good.

Do remember to loop through the item sin a list, rather than the indexes -- you almost always can do that.

PythonCHB added a commit that referenced this pull request Oct 17, 2014
session03 List Lab Homework
@PythonCHB PythonCHB merged commit e7afdaf into UWPCE-PythonCert:master Oct 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants