On Fri, Jul 13, 2012 at 11:46 PM, Santosh Kumar wrote:
> Like in my script:
>
> #!/usr/bin/env python
> #-*- coding:utf-8 -*-
>
> print "You will be prompted to enter your height in feet and inches."
> height_in_feet = input("How much feet are you long: ")
> remaining_inches = input("How much inch
Like in my script:
#!/usr/bin/env python
#-*- coding:utf-8 -*-
print "You will be prompted to enter your height in feet and inches."
height_in_feet = input("How much feet are you long: ")
remaining_inches = input("How much inches remained? ")
inches_in_feet = height_in_feet * 12
total_height_in
On Sat, Jul 7, 2012 at 12:59 AM, redstone-cold wrote:
>
> for i in range(1, 7):
>
> print(2 * i, end=' ')
The HTML attachment was scrubbed:
http://mail.python.org/pipermail/tutor/attachments/20120707/855bd6ce/attachment-0001.html
Here's the troublesome 'indent':
Please post using plain text
Prinn, Craig wrote:
I am trying to convert an EBCIDIC file to ASCII, when the records are fixed
length I can convert it fine, I have some files that are coming in as
variable length records, is there a way to convert the file in Python? I
tried using no length but then it just reads in to a fixed
On Fri, Jul 13, 2012 at 1:28 PM, Prinn, Craig wrote:
> The records are coming off of a mainframe, so there probably was a 2
> byte RDW or length indicator at one point. If there is a x0D x0A at the end
> would that work?
>
> Thanks
>
> Craig
>
I presume so, but (despite my bloviating abo
On 13/07/2012 18:54, Chris Hare wrote:
On Jul 6, 2012, at 11:59 PM, redstone-cold wrote:
What’s the differences between these two pieces of code ?
(1)
for i in range(1, 7):
print(2 * i, end=' ')
(2)
for i in range(1, 7):
print(2 * i, end=' ')
print()
I think they are exactly the
* blindmaildrop [2012-07-11 16:46]:
> Hello!
>
> I am just starting to learn python, having signed up for a class on it in
> University. The last time I programmed anything was in the long long long
> ago of BASIC and (well since I spent time doing other things) I missed the
> development boat.
On Thu, Jul 5, 2012 at 9:30 AM, Prinn, Craig wrote:
> ** ** ** ** ** **
>
> I am trying to convert an EBCIDIC file to ASCII, when the records are
> fixed length I can convert it fine, I have some files that are coming in as
> variable length records, is there a way to convert the file in Python? I
On 07/07/2012 12:59 AM, redstone-cold wrote:
> What’s the differences between these two pieces of code ?
>
> (1)
>
> for i in range(1, 7):
>
> print(2 * i, end=' ')
>
>
>
>
>
> (2)
>
> for i in range(1, 7):
>
> print(2 * i, end=' ')
>
> print()
>
>
>
>
>
> when executed both respe
Please always reply to the list!
>
> Hi!
> I am sorry, but still I don't get it!
> I am trying with this (the code is attached)
>
> csv_out=csv.writer(open('out1.csv', 'wb'), delimiter=' ',
> quoting=csv.QUOTE_ALL, dialect='excel')
> and
> csv_out=csv.writer(open('out1.csv', 'wb'), dialect='exce
On Jul 6, 2012, at 11:59 PM, redstone-cold wrote:
> What’s the differences between these two pieces of code ?
> (1)
> for i in range(1, 7):
> print(2 * i, end=' ')
>
>
> (2)
> for i in range(1, 7):
> print(2 * i, end=' ')
> print()
>
I think they are exactly the same, except the se
> So starting from scratch, how-to?
print "hello world"
Alan
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Hi!
I am sorry, but still I don't get it!
I am trying with this (the code is attached)
csv_out=csv.writer(open('out1.csv', 'wb'), delimiter=' ',
quoting=csv.QUOTE_ALL, dialect='excel')
and
csv_out=csv.writer(open('out1.csv', 'wb'), dialect='excel-tab')
When I open out1 with text editor, I g
Hello!
I am just starting to learn python, having signed up for a class on it in
University. The last time I programmed anything was in the long long long
ago of BASIC and (well since I spent time doing other things) I missed the
development boat.
So starting from scratch, how-to?
thanks
--c.
What’s the differences between these two pieces of code ?
(1)
for i in range(1, 7):
print(2 * i, end=' ')
(2)
for i in range(1, 7):
print(2 * i, end=' ')
print()
when executed both respectively in Python shell ,I get the same effect . Who
can tell me why ?_
I am trying to convert an EBCIDIC file to ASCII, when the records are fixed
length I can convert it fine, I have some files that are coming in as variable
length records, is there a way to convert the file in Python? I tried using no
length but then it just reads in to a fixed buffer size and I
On 7/13/2012 5:20 AM, susana moreno colomer wrote:
[snip]
Please post the entire traceback.
You did not tell us what error or where in option 1.
--
Bob Gailer
919-636-4239
Chapel Hill NC
___
Tutor maillist - Tutor@python.org
To unsubscribe or cha
On Fri, Jul 13, 2012 at 5:21 AM, Marc Tompkins wrote:
> Reply to the group, please!
>
> On Fri, Jul 13, 2012 at 2:09 AM, susana moreno colomer
> wrote:
>>
>>
>> Hi!
>> I am sorry, but still I don't get it!
>> I am trying with this (the code is attached)
>>
>> csv_out=csv.writer(open('out1.csv', '
Reply to the group, please!
On Fri, Jul 13, 2012 at 2:09 AM, susana moreno colomer <
susana...@hotmail.com> wrote:
>
> Hi!
> I am sorry, but still I don't get it!
> I am trying with this (the code is attached)
>
> csv_out=csv.writer(open('out1.csv', 'wb'), delimiter=' ',
> quoting=csv.QUOTE_ALL,
From: susana...@hotmail.com
To: tutor@python.org
Date: Thu, 12 Jul 2012 17:45:31 +0200
Subject: [Tutor] extracting a column from many files
Hi!
I want to extract from certain kind of files column number 5 and 6. I want to
extract acolumns number 5 to one file, and anumber6 to another
On Thu, Jul 12, 2012 at 11:36 PM, susana moreno colomer <
susana...@hotmail.com> wrote:
> Hi!
> I am trying this, but still I get 6 numbers per cell. The only one
> difference is that I get a comma between numbers instead an space.
> I am opening the document also with excel
> Many thanks,
> Susa
21 matches
Mail list logo