Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Help Coding

930375Apr 13 2012 — edited Apr 15 2012
Been working on this in Python for awhile, but I am getting no where, and would appreciate it if someone could help?

Implement a function selectSome() that takes as a parameter a list of student names (i.e. strings) and a list of special characters. It prints those names in the first list that start with the letters in the second list. Capitalization shouldn't matter when selecting the names. If an empty list is provided as either parameter, the function doesn't print anything. The information below shows how you would call the function selectSome() and what it would display for some example parameters:
selectSome(["Eva", "Sam", "Carly", "Tanya", "Owen", "Anna"], ['A', 'B', 'C', 'D', 'E', 'F'])
Eva
Carly
Anna
selectSome(["Hanna", "Bob", "chris", 'Fred', 'Alex'], ['a', 'F', 'C'])
chris
Fred
Alex
selectSome([], ['a', 'b', 'c'])
selectSome(['Eva', 'Bob'], [])

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 13 2012
Added on Apr 13 2012
1 comment
1,655 views