Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Oct 30th, 2007, 11:06 PM   #21
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,840
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Re: Quadratic Formula in Python

But don't be fooled by what "%si" is doing... I'm not sure if it's clicked yet, but it's nothing magical. It's saying "replace %s with one of the variables, and print it next to the letter 'i'".

So print "%si"%("Aaron"), will output "Aaroni", for example. Nothing to do with complex numbers really. Just a trick, that's all.
Sane is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools