November 11th, 2003, 10:51 AM
netytan yes as an experiance c programmer i know that, that way is better and faster.. but i see that you have an extra % there at the end.. that is this for?
November 11th, 2003, 04:17 PM
Mmm i'm assuming your taling about the % at the very end between the string and the values you want inserting..
'My mummy was %s' % 'a string formating char.. no really'
In this case the % operator tells Python to expect values for formatting and then insert them into the the string, without this Python wont even try and inserting values leaving the string 'My mummy was %s'
Note: if you supply values without the % you'll end up with a SyntaxError