[Tutor] Using for loops for combinations

S Tareq stareq13 at yahoo.com
Tue Feb 18 21:06:17 CET 2014


does any one know how to use 2to3 program to convert 2.7 python coding 3.X please i need help sorry  thank you 




On Tuesday, 18 February 2014, 19:18, Danny Yoo <dyoo at hashcollision.org> wrote:
 
On Tue, Feb 18, 2014 at 8:37 AM, Chinanu 'Chinex' Onyekachi
<chinex at live.com> wrote:
> Find all possible combinations of a specific word (string) using any
> combination of upper case and lower case letters with a for loop (no
> itertools).
>
>
> An example:
>
> string_input = hat
>
> comboination = ['hat', 'Hat', 'HAt', 'HAT', 'hAT', 'haT', 'HaT', 'hAt']

[code cut]


This appears to be homework, so unfortunately the help that can be
provided will need to be limited; otherwise there's a risk of
violating your institution's Honor Code.

Can you talk more about what difficulty are you running into?

_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140218/2da16e38/attachment.html>


More information about the Tutor mailing list