[Baypiggies] String Attribute

Simeon Franklin simeonf at gmail.com
Wed Jul 29 02:11:40 CEST 2015


Same deal. Your code crashes with:

AttributeError: 'str' object has no attribute 'startwith'


and when I investigate I see that the problem is that your code has a typo.
See it?
$ python
>>> dir(str) # what are the attributes of str?
[... omitting some output... 'split', 'splitlines', 'start*s*with',
'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']

I made a video explanation as well - https://youtu.be/GJtj7Mg6jNU


On Tue, Jul 28, 2015 at 4:39 PM, <ltc.hotspot at gmail.com> wrote:

>
>
> Hi Everyone:
>
> What is the source of the syntax error to the String Attribute?
>
>
> Go to the following URL links and view a copy of the raw data file code
> and sample data:
>
> 1.) http://tinyurl.com/p2xxxhl
> 2.) http://tinyurl.com/nclg6pq
>
> Here is the desired output:
>
> stephen.marquard at uct.ac.za
> louis at media.berkeley.edu
> ....
>
>
> Hal
>
> Sent from Surface
>
>
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> https://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20150728/1d4a895a/attachment.html>


More information about the Baypiggies mailing list