Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Help me!
Index -> Programming, Python -> Python Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AznTiger




PostPosted: Wed Mar 12, 2008 5:19 pm   Post subject: RE:Help me!

Thanks guys, you have no idea how much easier that made life
Sponsor
Sponsor
Sponsor
sponsor
AznTiger




PostPosted: Tue Mar 18, 2008 8:10 pm   Post subject: RE:Help me!

Alright so I know how the comma works now, but everytime i use it in a print command
i.e
print "A", "B"
the result becomes A B instead of AB so does anyone know how to solve this problem?
Thanks again
wtd




PostPosted: Tue Mar 18, 2008 8:34 pm   Post subject: RE:Help me!

Don't use "print". Smile

Use the stdout object from the module sys. Specifically the write function. You may also need the flush function is line buffering is present.
AznTiger




PostPosted: Tue Mar 18, 2008 9:00 pm   Post subject: RE:Help me!

So how would this work in the actual code?
wtd




PostPosted: Wed Mar 19, 2008 9:50 am   Post subject: RE:Help me!

You tell me?

1. How do you import a module?
2. How do you access an object in that module?
3. How do you call a function (method, if you prefer) on an object?
Display posts from previous:   
   Index -> Programming, Python -> Python Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 20 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: