[Soc2015-general] line error on no. 7

harsh daftary info at securitylabs.in
Wed Jul 29 04:42:12 CEST 2015


First of all .append is a function,
So you need to pass what data you need to append.
On line 7
It should be like :
list.append(line)

Secondly this is not the correct place to ask questions related to such
matter.
This is mailing list for Summer of code 2015.

Searching for solution on google is more easy.

Best regards,
Harsh Daftary

Please consider the environment before printing.


On 29 Jul 2015 01:47, <ltc.hotspot at gmail.com> wrote:

>  Hi Everyone,
>
> I'm writing python code to read a data text file, split the file into a
> list of words using the split(function) and to print the results in
> alphabetical order.
>
> The raw python code is located at http://tinyurl.com/oua9uqx
>
> The sample data is located at
> http://tinyurl.com/odt9nhe
>
>
> Desired Output: ['Arise', 'But', 'It', 'Juliet', 'Who', 'already', 'and',
> 'breaks', 'east', 'envious', 'fair', 'grief', 'is', 'kill', 'light',
> 'moon', 'pale', 'sick', 'soft', 'sun', 'the', 'through', 'what', 'window',
> 'with', 'yonder']
>
> There is a line error on no. 7
> What is the cause of this error?
>
>
> Regards,
> Hal
>
> Sent from Surface
>
>
> _______________________________________________
> Soc2015-general mailing list
> Soc2015-general at python.org
> https://mail.python.org/mailman/listinfo/soc2015-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soc2015-general/attachments/20150729/19fd7c93/attachment.html>


More information about the Soc2015-general mailing list