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

General Discussion

Is there anyway we can add screenshots of our code.

It would be much easier for us to show our problems or solutions in the discussion

1 Answer

Cameron Childres
Cameron Childres
11,820 Points

Hi Sumiya~

There's a couple of ways you can share your code here.

If you want to share short snippets then pasting the code directly in to your post and using the "markdown cheatsheet" linked below the comment box to format it works well. You make a line with 3 backticks and language type, then the code on the next line, and finish it with another line of 3 backticks:

```javascript
code goes here
```

Looks like:

code goes here

If you're sharing large amounts of code or want to reference multiple files then sharing a snapshot of your workspace is the better solution. In your workspace look for a camera icon in the top right. Clicking this will produce a "snapshot", which gives a link that you can post/share. When looking at that link we'll be able to see your entire workspace and we'll also be able to make a fork for ourselves to easily play around with the code.

Just trying...

first_name= input("What is your first name?     ")
print("Hello", first_name)
if first_name == "Craig":
    print(first_name, "is learning Python", "!"*2)
elif(first_name == "Maxi"):
    print("{} is already in Python community in the Treehouse!".format((str.title(first_name))))   
else:
    age=int(input("How old are you?"))
    if age <= 6:
            print("Wow you are {}, If you are interested you should learn Python!".format(age))
    print("How about learning Python {}!".format(first_name))
print(str.title("have a great day {}!").format(str.upper(first_name)))

Thank you Cameron I got it!