.
Is that something or dependency i have missed to install?
--
Raghavendra Vanam
--
Raghavendra Vanam
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
display the string on the console ie. by below piece of code
import fileinput
x = fileinput.input('data.txt',inplace=0)
for line in x:
print line,
x.close()
It wouldnt print with the same Font size on the console (This wont
prove anything wr
2010 at 12:42 PM, Shashwat Anand
wrote:
> You can try it by reading all data as string, replacing the string and then
> write it to target file via opeing it in +w mode.
>
> f = open('data.txt', 'rw').read().replace('Python', 'PYTHON')
> f1
ot my goal.
7. Closed the files outside for loop -- log.close()
--
Raghavendra Vanam
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
;)
> out_file.write("\n")
> out_file.close
>
> now i want to add like say 5 persons to the txt file, but whenever i enter a
> new person it just overwrites the previous, im sure its because of the "w"
> but how exactly do i need to change my code to add more text instead of
> overwriting?
>
>
>
>
--
Raghavendra Vanam
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
of code but of no avail.
a = ["cat", "window","defenestrate"]
for x in a:
print x, len(x)
i cant understand what x is doing here and what is the purpose of it
can anyone help me out here?
--
Raghavendra Vanam
___
Tutor
ut("enter 2nd letter=")
c = raw_input("enter 3rd letter=")
def cmp():
d = (a+b+c);
if (d=='PAN'):
print "word" 'd' "is correct"
else:
print "Try Again"
CALL();
def CALL():
cmp();
cmp()
--
can any one explain about pickle i read in the book but they have not
provided any example for that so please explain with a simple example
--
Vanam
___
Tutor maillist - Tutor@python.org
http
t i saw on
interpreter(In curly braces) when i ran the script
[MY QUESTION]:1.from where the above in curly braces is printed?and i have
written only 'hai' to the text file
2.Should i recall again the opening of the file in
'r' mode to read the file?
--
Vanam
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
able to
develop any application using py2.5?One more thing is what is tkinter?Can
any one explain what are all branches in python and how it could be used?
--
Vanam
___
Tutor maillist - Tutor@python.org
http
results and diff
between filter and map
On 1/23/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
vanam wrote:
> ya i am sure about that i am using python editor which has python
> intrepreter attached to it i got the same output for both filter and map
> def squ(n):
>y = n*n
>
ya i am sure about that i am using python editor which has python
intrepreter attached to it i got the same output for both filter and map
def squ(n):
y = n*n
print y
filter(y,range(3))->0 1 4
map(y,range(3))->0 1 4
On 1/23/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
vanam wro
*x
filter(squ,range(1,3))->1,4(output)
map(squ,range(1,3)->1,4(output)
--
Vanam
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
->this would sort out elements in that list. my question is in
the above script all the elements that list carry are defined i want to
input some elements in the list how could it be done
--
Vanam
___
Tu
14 matches
Mail list logo