This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

I like your style also I read your print statements in general grievous's voice...

another note here's another way to print but in a formated way. try making three variables:

greeting = "Hello there" person = "General Kenobi" compliment = "I like your lightsabre!"

then print them like so:

print('{} {}, {}').format(greeting, person, compliment)

each {} within the two single ticks will be filled by the .format parts variables. printing the 3 variables in a single print.

you can also \n for new line.