Re: [Tutor] Using for loops for combinations

2014-02-18 Thread Danny Yoo
On Tue, Feb 18, 2014 at 6:34 PM, Chinanu 'Chinex' Onyekachi wrote: > Thanks for taking you time to explain. > > minus = ['subtract'] #creates a list for subtract > > > for i in minus: > > minuslist1 = [i[0].upper() + i[1:]] > > minuslist2 = [i[0] + i[1].upper() + i[2:]] > > minuslist3 = [i[0:].upp

Re: [Tutor] Using for loops for combinations

2014-02-18 Thread Danny Yoo
On Tue, Feb 18, 2014 at 5:15 PM, Chinanu 'Chinex' Onyekachi wrote: > I’m having difficulties uppercasing a single portion (e.g. hAt) and two > portions (e.g. HaT) of the string. [Adding tutor@python.org to CC. Please use reply-to-all in future emails on this list. Thanks!] Hi Chinanu, Ther

Re: [Tutor] Using for loops for combinations

2014-02-18 Thread S Tareq
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 wrote: On Tue, Feb 18, 2014 at 8:37 AM, Chinanu 'Chinex' Onyekachi wrote: > Find all possible combinations of a specific word (stri

Re: [Tutor] Using for loops for combinations

2014-02-18 Thread Danny Yoo
On Tue, Feb 18, 2014 at 8:37 AM, Chinanu 'Chinex' Onyekachi 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',

[Tutor] Using for loops for combinations

2014-02-18 Thread Chinanu 'Chinex' Onyekachi
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'] What I've tried so far, I’m trying