Post: need python help
10-29-2013, 05:59 AM #1
Complete Speed
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); what would be the best way to iterate through updating a text file with text.
e.g.

i want it to do this

    
enter user: blah...
enter user: blah....
enter user: blah.....
are you done entering users?(y/n)


can someone write me a function really fast.

thanks in advance.

**UPDATE**

figured it out for those interested
    
f = open('text.txt', 'w'Winky Winky
ans = 'N'
while ans == 'n'.upper():
f.write(raw_input('enter user: 'Winky Winky)
ans = raw_input('are you done(y/n)? 'Winky Winky
(adsbygoogle = window.adsbygoogle || []).push({});
10-29-2013, 10:58 PM #2
Dan
I'm a god.
When you run into problems, try referring to the Python manual. You must login or register to view this content.
10-30-2013, 06:11 AM #3
Complete Speed
Do a barrel roll!
Originally posted by Shadow View Post
When you run into problems, try referring to the Python manual. You must login or register to view this content.


yeah, i know. i should have. i was just desperate i thought. but thanks for your input.

The following user thanked Complete Speed for this useful post:

Dan

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo