;whatever", "\n"
...
> 1WHATEVER2WHATEVER3WHATEVER>>>
>
> The default for end is of course newline, spelt "\n" in a Python string
> literal. Use
>
> >>> help(print)
>
> in the interactive interpreter to learn more about the print() function.
>
> __
On 6 November 2011 15:47, Dave Angel wrote:
> On 11/06/2011 04:45 AM, Sarma Tangirala wrote:
>
>> On 6 November 2011 13:11, Peter Otten<__pete...@web.de> wrote:
>>
>> Joe Batt wrote:
>>>
>>> I am learning Python 3 and programming and am very n
I am so very sorry for the noise. I was careless in reading the OPs post.
On 6 November 2011 15:53, Sarma Tangirala wrote:
>
>
> On 6 November 2011 15:47, Dave Angel wrote:
>
>> On 11/06/2011 04:45 AM, Sarma Tangirala wrote:
>>
>>> On 6 November 2011 13:11, Pet
On 6 November 2011 16:57, Dave Angel wrote:
> On 11/06/2011 05:23 AM, Sarma Tangirala wrote:
>
>>
>>
>
> I just joined the list and did
>>
>
> WELCOME to the list. I should have said that first.
>
> --
>
> DaveA
>
>
Ha! Sorry fo
On 6 November 2011 21:09, Alan Gauld wrote:
> On 06/11/11 10:23, Sarma Tangirala wrote:
>
> I'm sorry. Didn't notice the python 3 part, I just joined the list and
>> did not look at the OPs post. Sorry about that.
>>
>
> welcome to the list :-)
>
>
&
Would the html parser library in python be a better idea as opposed to
using split? That way you have greater control over what is in the html.
On 20 Nov 2011 23:58, "dave selby" wrote:
> Hi All,
>
> I have a long string which is an HTML file, I strip the HTML tags away
> and make a list with
>
>
untered.
http://en.wikipedia.org/wiki/Interpreted_language
But python does have a compile version, I believe jython does this.
There are a couple of programs that generate executable, py2exe on Win for
example.
http://stackoverflow.com/questions/2933/an-executable-python-app
--
Sarma Ta
We shoud have a new tag say [Superman Python] for posts like these. :D
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
__
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
--
Sarma Tangirala,
Class of 2012,
Department of Information Science and Technology,
College of Engineering Guindy -
On 9 December 2011 20:50, Dario Lopez-Kästen wrote:
> On Fri, Dec 9, 2011 at 3:54 PM, Sarma Tangirala > wrote:
>
>>
>> On 9 December 2011 20:07, Cranky Frankie wrote:
>>
>>> I'm looking for a term to call the kind of Python programming that
>>>
On 9 December 2011 21:44, Steven D'Aprano wrote:
> Sarma Tangirala wrote:
>
> The point is its a scripted language.
>>
>
> Define "scripted language". (Scripting language?)
>
>
>
I meant scripting language. :)
>
> Most of what you want to d
> Object Oriented Analysis and Design with Applications
> by Grady Booch (1st edition)
> Classic text on OO Design with code and case studies realized in 5
different OOP languages (Smalltalk, Object Pascal, C++, Lisp, ADA)
> Explains why OOP is important and how to ise it effectively. Also
introsdu
> thanks dave,
> just tried writing to file for the first time
>
> def main():
> outfile.write('Hello this is a test')
> outfile.close()
> main()
>
> error, globalname outfile is not defined, do i need to import function to
get this working?
>
>
Fyi, you should check the python docs. They have a
example
as, [[4, 0], [3, 2], [2, 2], [1, 2]]. That is, sort on the second value and
in case they are equal, reverse sort on the first value.
I tried doing this using sorted and using a custom cmp function but not
sure about how to define the cmp function.
--
Sarma Tangirala,
Class of 2012
On 9 January 2012 18:26, Steven D'Aprano wrote:
> Sarma Tangirala wrote:
>
>> Hi list,
>>
>> I was banging my head about a pythonic way of doing the following,
>>
>> Given a nested list, how do I sort the uppermost list based on one key and
>> wh
ion options:
> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>
>
--
Sarma Tangirala,
Class of 2012,
Department of Information Science and Technology,
College of Engineering Guindy - Anna University
__
On 8 February 2012 00:01, Steven D'Aprano wrote:
> Sarma Tangirala wrote:
>
> Is is better to use pow() against **?
>>
>
>
> Advantages of **
>
> - it is shorter to type x**y vs pow(x, y)
> - being an operator, it is slightly faster than calling a
On 10 Feb 2012 19:45, "myles broomes" wrote:
>
> Ive been given a challenge in the book im learning Python from and its
basically create a program with a dictionary of father - son pairs and
allow the user to add, replace and delete pairs. Ive done that without any
problems but ive been giving ano
sure I understand why this is happening.
--
Sarma Tangirala,
Class of 2012,
Department of Information Science and Technology,
College of Engineering Guindy - Anna University
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription o
y does MimeText care about the To field when the
actually sending is being done by SMTP?
--
Sarma Tangirala,
Class of 2012,
Department of Information Science and Technology,
College of Engineering Guindy - Anna University
___
Tutor maillist -
On 16 May 2012 17:04, Sarma Tangirala wrote:
> Hi Walter,
>
>
>> All the headers in the MimeText object needs to be strings. You can't
>> directly pass a list object containing multiple recipients to the "To"
>> header of your MimeText object on line
On 16 May 2012 20:37, Alan Gauld wrote:
> On 16/05/12 12:37, Sarma Tangirala wrote:
>
>>But I do have another question. Maybe this is a misunderstanding
>>about the MimeText type, but why does MimeText care about the To
>>field when the actually sendi
On 18 May 2012 23:53, Spyros Charonis wrote:
> Dear Python community,
>
> I have a set of ~500 files which I would like to run a script on. My
> script extracts certain information and
> generates several lists with items I need. For one of these lists, I need
> to combine the information from al
On 23 May 2012 15:21, Bala subramanian wrote:
> Friends,
> While iterating through each list item and printing/writing it, why does
> the sq. brackets get printed/written to the file. Just a small eg.code is
> given below.
>
> >>>N=100
> >>> myl=range(1,100+1)
> >>> new=[myl[i:i+15] for i in rang
On 24 July 2012 01:25, Ali Torkamani wrote:
> Hi every one,
> How can we get the indices of values in the original list after sorting a
> list?
>
> for example:
>
> (Pdb) A=[ 1, -1, 0, 7, 9, 1.3, 2.9 ]
> (Pdb) A.sort()
> (Pdb) A
> [-1, 0, 1, 1.3, 2.9, 7, 9]
> (Pdb)
>
>
> Now I want to have the or
On 17 September 2012 12:04, Santosh Kumar wrote:
> Here is the script:
>
> alphabets = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
> 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y',
> 'z']
> i = input("Press any English alphabet: ")
> current = alphabets.index(i)
Hi,
I had a quick question on how string compare works. If did '1001' <= '999'
I get true. I know how the string compare works but I was wondering why it
were so. Why doesn't the string length factor into the comparison? For
example, If I compared character-by-character but also found how differen
27 matches
Mail list logo