Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Digital Literacy Computer Basics Computer Languages Programming Paradigms - Part 1

Why do you put exclamation mark after each phrase and what is Python Code 3

What is Python Code 3? and why do you put exclamation mark after the phrase

HelloWorld.py
print("Hello Lenora!")

2 Answers

Steven Parker
Steven Parker
231,288 Points

"Python 3" is just a reminder that version 3 of the Python language is being used. All the courses here use version 3.

And the instructions do not ask you to put exclamation mark after the phrase. It won't cause a problem to have one, but it is not required.

Thanks.. I just repeated what was done in the examples... real life coding it is not necessary to put exclamation mark

Steven Parker
Steven Parker
231,288 Points

For course challenges, always use what the instructions ask for.

For real projects you would use any punctuation that is appropriate to the message being shown. It's never required for the code to work.

Glad I could help, and happy coding!