[Tutor] another better way to do this ?

Don Jennings dfjennings at gmail.com
Sun Jan 12 01:47:57 CET 2014


On Jan 11, 2014, at 4:24 PM, Roelof Wobben wrote:

> Hello, 
>  
> I try to learn python by following the audicity page.
>  
> Now I have the following problem.
>  
> I have two strings a and b 
>  
> Now I have to check if the characters of b are all in a.
> But they do have to be in the same order. 

Perhaps they are looking for something like:

>>> 'abc' in 'someotherabcstring'
True

I suspect that you'll want to figure out how to do that same task with variables now :>)

Take care,
Don



More information about the Tutor mailing list