First of all, it doesn't look like you used any indentation, and you wrote "rint" instead of "print". You seem to be using Python 3. When you type "python" into the terminal/command prompt, what does it say?EDIT:This version of your script should be fixed if you have python 3:

mckryall wrote:Thanks for the formatting clarification. Why'd they change that? I liked using %.

Not a clue mate, I haven't been programming long. I only know that because I've been lurking around this forum lol (which by the way, to any n00bs like myself, is an AMAZING way to learn - you'll pick up tricks that you won't see in any of the tutorials - just take lots of notes )

print('Welcome back to the Avalonia Control Panel {}'.format(username))

This is incorrect. The original % style formatting still exists in python 3.Guido has personally stated that it is not going to go anywhere in the past (I'm trying to find the source for this; will edit when I have found it).

The new format method is definitely preferable in the vast majority of cases; but that doesn't make the other method a syntax error.

mckryall wrote:Thanks for the formatting clarification. Why'd they change that? I liked using %.

Not a clue mate, I haven't been programming long. I only know that because I've been lurking around this forum lol (which by the way, to any n00bs like myself, is an AMAZING way to learn - you'll pick up tricks that you won't see in any of the tutorials - just take lots of notes )

From what I've heard, they switched to the "I am a {}!".format("string") method because it's a lot easier to read.

I have also heard that the "I am a %s!" % ("string") format (the old format) is based on a method that does the same thing in C.

I thought I remembered hearing that the old formatting would eventually be removed, so I looked into it a bit. It appears that in old documentation said it would be removed, but newer documentation does not, and other new documentation is more aggressive about suggesting it not be used, which is probably because they really want people to stop using it even though it will stick around.

Join the #python-forum IRC channel on irc.freenode.net!

Please do not PM members regarding questions which are meant to be discussed publicly. The point of the forum is so that others can benefit from it. We don't want to help you over PMs or emails.

In short, every time you make a backwards incompatible release, you have to add 1 to the first number; every time you insert a new feature to a release, you add 1 to the second number; and every time you do a bugfix release, you add 1 to the third number.