Using backticks to format your code


for key in prices:
    print key
    print "price: %s" %prices[key]
    print "stock: %s" %stock[key]

How do i post my code here?
I am doing it right but it says i am doing wrong
How do i do html basics 1-8
The Big if()
How to insert code into a post
SOS, Help Requested on Lesson 8 For HTML!
How do I print out the total on lesson 13. lets check out
Neighborhood Guides: Images 2
Just Weight & See: Error
Error Impossible to Fix! HELP!
5.Neighborhood guides:grid
Getting error for nth child task
Next dot 2
8/9 what's wrong? what does it mean by arguments and how to code them
Exam Statistics Four Bug(or my mistake)
3/9 Place both ul elements in between opening <div> and closing </div> tags
3/14 plz print code so i can compare
Interactive Website
8. I'm getting the common error
Making a Website 1.5, Oops, try again. Place your h1 element and p element in between <div class="container">..</div> tags
Changing your Mind
17/19 review
Wrap divs
8\9 my code doesn't work and I'm doing everything right. Help!
Pull It Together ---> Problemito
"This Next Part is Key" - 'dict' object is not callable
Syntax error; rock,paper,sci, #4
3/33 and the good
Making a Purchase..........DONT KNOW WHY ITS NOT WORKING
20/21 background: limegreen; not working!
Help 8
Bug in "More Practice With Conditionals"
8. A Methodical Approach - I don't know what's wrong
Can You pick out the fault in this code?
Problem with Conditionals! PLEASE RESPOND ASAP
Following exercises not passing
Maths quiz
Need help with Notepad++ webpage
PLAN YOUR TRİP EXERCİSE.can someone tell me what is wrong with this code
What is wrong here ? Oops, try again. Place the supporting content inside the <div class="container">..</div>
This exercise is regarding to lesson wrap with div,can anyone tell me what the mistakes i did
7. Ay B C PygLatin
The Big if()
Help at 6 please
I didn't understand what happened in 12
8/8 What is wrong with my code?
Hey, You Never Know!
Font-family:'Shift', sans-serif
3.Displaying People--have a question!
Neighborhood guide 2 stuck
12/15 I'm not sure what I'm doing wrong in this
List within list here is my code is working
Clickable Photo Page
9.9 Next Method
#10 HTML Basics II : Oops, try again. It looks like your second <li> is 16px instead of 12px
JavaScript link and external script
Question #4 of Build Your Own Website
Ruby on Rails
Your first program: on Try it out
Your first program: on Try it out
7. Reverse - For loop problem(?)
Jquery 12.toggling question need help
Trying to make my own project
Part of the whole-8
Stuck on 7
A Day at the Supermarket trouble
Make a website: CSS styling
Part of the whole-8
Error Message Add a second <div class="thumbnail">...</div>
Python Syntax
Something of Value 9/13 python help
Can someone help me?
Adding the images #6
Still getting the error message to add div class neighbourhood guides
Where I have problem ? I don't know save me
9/9 Unexpected Indent
I keep geting friends undifined
While loop, review!, they just don`t work!
11. Not understanding why its acting this way
What's wrong with this code?
I have a problem with grids
13. Else Problems, I Feel Bad For You
Set the height of the <div class="jumbotron">..</div> to 500px
1 all html elements are selectors
Armando Perez project task #2, need help
Code syntaxis problem
Whats wrong with my code ? :/
7.Disable the button 1
Cant remember the code to change the font?
Before and after - error message
HTML Basics font color-Oops, try again. It looks like your second paragraph's font-size is 12px instead of 10px
Jquery 4
Supporting Content 2

Just in case someone curious end up here and is wondering what is the backticks thing he is talking about, here is the trick:

Whenever you would like to paste code, since this forum supports Markdown syntax you can use three backticks before and after your code block like so:

def my_func(x):
my_var = 0
if x > my_var:
sum = my_var + x
print "Odelay!"
return sum

and it will retain proper indentation and even have nifty syntax highlighting:

def my_func(x):
    my_var = 0
    if x > my_var:
      sum = my_var + x
      print "Odelay!"
    return sum

The key to get a backtick character is highlighted in blue on this US keyboard layout:

Bootstrap Problems (Neighborhood Guides)
Code not working!
Error Messages on Lists Within Lists
6. Jumbotron: Fonts
Font size 10 being understood as Font size 14 in HTML Basics II
5/19 Functions Calling Functions Help
Help me please, I'm stuck
Stucked in the lesson 10 ..please help ..dnt know why i cant access the next lesson
I need help on 2. Taking up space
Please someone help me with if statement
Please help
Lesson 18: Show It If You Know It! Color not changing
jQuery lesson 3-11
Transportaion Troubles!
Sound not playing
Cant find my error
9.2 <p class="likes">+ {{ product.likes }} </p>
Slip and slide
Make a Website Bootstrap: 7/14 What am I doing wrong?!
I need to have a same functionality for two calendars can anyone help
Hangman simulator, Unindent Does not match any outer indentation level
5. Filters II unable to display pubdate via index.html
Python Paddleball Game
Need help with 23?
4. What is wrong with my code?
How much dedicated RAM do I need to run Codecademy?
Python Codebit Question?
Threadly - is it supposed to display the comments?
I am stuck on lesson 12 of css: an overview, help plz
Segments does not appear in columns. (Yet I'm able to continue.)
Here is what I have done and I am still getting an error message. Help!
"Float Object Not Callable", 11.8
What if Choice is Scissors (Part 8) Help
Keep getting this error "Oops, try again. Add a <div class="neighborhood-guides">..</div> section to the page.". Where am I getting wrong? Please help, here's my code
Plz help on part 8 says that the second paragraph is sixe 16 when it should be 10!
I cant figure divisions
Project "Best Bite"
Supporting content 2 Err
Envolver con div no encuentro mi herror
Innovation Cloud btn:hover
Help with 4/6 please!
About You (paragraph font size tag error)
Fading the div to 1
Exercises 6. and 8. - Common problems
Help my moon orbit my earth please!
The Big if()
Student Becomes the Teacher(Part of the Whole)
12. Append to Body - Completely stuck!
Listing Everybody
I dont know how to move forward
Exercises 6. and 8. - Common problems
4 moving elements around. please help
Unable to find error in my jquery progaram
A cool code
I cant seem to figure out what i did wrong
Jquery codebit link
Am having a problem with the syntax here.Please someone help me with this urgently
Jumbotron fonts help
Password bug
Paid, charged but no Pro account | Payment issue
What features do you want to see in a Pro Product?
Can't figure out what's wrong on #7
8. Error msg: Set the border-bottom to '1px solid #dbdbdb'
2. what?
Revoke course registration?
6.5 Show a destination (link_to "See more")
HELP 4. First move
8: Part of the Whole. What am I doing wrong?
5., 6. & 7. Some best practices to avoid errors
Not able to access movies database from /actors
Email placeholder
The big if, the flying circus
Compressing text
7. Can someone help?
4. Displaying the Balance
7/11 creating class methods
Common email, password and Login issues
Need Help with MOVE - supporting content
Locked my self out of my account
Codebits cause browser to crash
When will the projects be working again?
How do I test to see if my project code is actually working?
Neighborhood Guides: Images 2
What's wrong, I can't finish the 6th step
Jombotron fonts - Cannot figure out what I am missing
Lesson 8 Wrap with a div Solution?
Disable Button 1 : Make sure you have defined all the variables!
Where I fault ? help me
Where I fault ? help me
Thumbnail wont work
What's wrong, I can't finish the 6th step
What is wrong here? I cant finish it
How did you finish 2: "set font weight to bold"?
5.Neighborhood Guides: Grid
Exercise 9. Error Message
Issues with tutorial 8 — Learn More: Heading
Exercises 6. and 8. - Common problems
Having a little difficulty with : 7. Neighborhood Guides: Images 2
I am stuck at 92%
I'm not sure the images on here verses the actual code but here is another try
I dont know what i did wrong
7. Image 2 NEED SERIOUS HELP! I have no idea whats wrong!
Step 7. cant figure it out, need tips
( Neighborhood guides images 2) Lesson 6 won't submit
7. Image 2 NEED SERIOUS HELP! I have no idea whats wrong!
Stuck on nav 2!
7. Neighborhood Guides: Images 2
Number 11 ?/
Please help!
Wrap a div
Images and Links1 - In-completing
.5 Neighborhood-Guides: Grid
Please help!
7. No idea what I'm doing wrong here
Lesson 1
Lesson 5 wrap div
Lesson 4 large figure
I am stuck at 92%
The Big If
Else: #If Random Operator=3/Else,it will ask subtraction question
Background-size: cover;
Problem with 9
5. Jumbotron - Paragraph -- I have tried everything
Nav 2 Web view incorrect
Stuck at step 8
6. Supporting Content 1
6. Jumbotron: Fonts
Stuck at step 8
6. Supporting Content 1
Need help with 5. Neighborhood Gides: grid
Help on Neighborhood: Grid please
What should Navigation 2 look like when completed?
Place your h1 element and p element in between <div class="container">..</div> tags
Section 7
3 Wrap with div
Problems with 9/10
6. What am I doing wrong?
9/9 Unexpected Indent
#7 Oops, try again. Add a <div class="thumbnail">..</div>
Inside the head element add the link element for the custom font: Unit3/6
Neighborhood Guides: Images 1
6. Jumbotron: Fonts
7/14 Inside the third <div class="col-md-4">..</div>, add a <div class="thumbnail">..</div>
6. Set the font-family of the h1 element
Bootstrap doesn't seem to react?
No </div>
Images 2 help
Wrap with a div
What have i done wrong?!?!
5/19 Functions Calling Functions Help
Help With: CSS Styling: 2. Navigation
Help! How to wrap with div?
Please help me find out what's wrong with my code
Help me!
About you
5/8 stuck
Bootstrap: Neighborhood Guides-Images 2
The full screen is not working
How to make image and text responsive next to each other on a background?
Add the third supporting div?
What am I doing wrong here? I feel like it's right, but get error
13/19 - curious to understand this alternative
2. My code is exactly as the "Stuck...Get a Hint" example reads
15/19 error
Oops, try again. get_class_average([alice]) resulted in an error: global name 'student' is not defined
15. Background Check
How is Everybody Doing:
I do not understand how to get a font to change in the index.html
Could someone point out my mistake?
Neighbourhood guides - grid
What's wrong with orange?
Number 4
3. Jumbotron - Change the position to relative
5/11-6/11 Says its wrong, still accepts it but later won't
Given me an error syntax while coding object oriented programing,OOP LAB quiz 3,please where im i missing it?
7. Neighborhood Guides: Images 2
Jumbotron font error
Oops, try again. Make sure you have defined all the variables!
Help on 8) work your body?
Bootstrap lesson 5
What am I doing wrong? CSS Styling #8
Neighborhood Guides: Grid
Why is this not working?
Exercises 6. and 8. - Common problems
Exercise 23 incorrect substring
Why do I keep getting a syntax error?
8. Place the supporting content inside the <div class=“container”>..</div>
Error (add h1 element after closing /div
5. Jumbotron: Paragraph
7. Supporting Content 2
Neighborhood Guides: Images 1
Where to put <style>?
4. Learn More: Grid
I am stuck at 92%
Where is the problem I don't understand this lesson help me
23. Many selectors, many properties
I need help, i don't know what i did wrong!
Build "Rock, Paper, Scissors" What if choice1 is scissors?
What is wrong ? 8
8. Error msg: Set the border-bottom to ‘1px solid #dbdbdb’
13 precent on how to make a website please help
Help me!
3.8 wrap with a div (HELP)
6. Jumbotron Fonts Error Message
8/10 Not able to Submit Successfully- common issues checked
I'm stuck!
Make a website:HTML- wrap with a div
What am i doing wrong?
5. Jumbotron: Paragraph
Can't move on from 5/10 Jumbotron: Paragraphs
Css #3
6 jumbotron fonts
Add new CSS for .jubomtron
5., 6. & 7. Some best practices to avoid errors
Innovation Cloud Project
Neighborhood Guides: Image 2 STUCK!
Help on .about you. how to make a website
Why isnt my name coming up on the preview screen?
Can't get pass 92% Neighborhood Guides: Images 2
3. Jumbotron
10. Arrays not working... Why?
2/10 Where do I put the .nav CSS code?
Neighborhood guides: images 1
Set the background image
Exercise 6. main.css trouble
7. Neighborhood Guides: Images 2
Image 1 bootstrap problems
17/21 border needs to be set to 0 error. (I have it right I believe)
I just can't get step 6 right
I cant complete step 6 on Make a website: CSS Styling
Inquiry Lesson 8 - What's Missing
Could someone help me with 6.Supporting content 1
7.what am i doing wrong!
I need help with 3/10 im new to this
I Don't understand my mistakes on exercice "3. ArrayList"
Course 1:Lession 8
I Guess I Did It Wrong
Bootstraps 2 Images
<style></style> entered as instructed, still says whoops
Need help on 7. neighborhood guides :IMG 2 .. keeps asking me to add a second thumbnail .. but i already did
8. Wrap with a div - I am unable to move on
Bootstrap 2 images error
Guys .a in my code doesn't seem to be registering
Uncaught syntax error : unexpected end of input
3. Jumbotron – the error says to make the height 500px
Backround image
1 6. Neighborhood Guides: Images 1 -- Nothing works, is it a bug?
"defined all the variables!" Code works, can't progress
8. Learn more: Heading
Set the font-family of the h1 element
Need help on Bootstap 6 image 1, how do I post my code?
8. I've reset my zoom on my imac. I'm still getting the "set the border-bottom to '1px solid #dbdbdb'
Need some help with pulling a picture down on a web page
8. Learn More : Heading -- How do you display .learn-more h3 ...?
8. Learn More: Heading -- I'm having a problem
8. Learn More: h3 - what am I doing wrong?
Oops, try again. Place the supporting content inside the <div class="container">..</div>
6. Jumbotron: Fonts -- What is wrong in this code?
Do you want to improve your coding skills?
Jumbotron : Fonts, Lesson 6
<style></style> entered as instructed, still says whoops
3. Error msg: Add the class "pull-left", or "pull-right"
Neighborhood Guides: Images 2 - I seem to be having some issues
Help! wrap with a div
Make a website navigation 2
Help needed html & css & bootstrap it's not working
Please help my div class isn't working, what's wrong with my code?
Font Family
6 jumbotron
Make sure <div class="neighborhood-guides">..</div> is after the jumbotron
5. Jumbotron: Paragraphs -- I'm having the same issue
9.Learn More: Link -- I'm having the same problem
#7 Suporting content 2 HELP
7. Neighborhood Guides: Images 2 - I'm stuck
Why can't I submit my code?!
7. My code has the thumbnail divs
Not working
What's wrong?
8. I can't find the mistake
Neighborhood Guides: Images 1-- I need help
Please help
Missing Elements that are clearly there
3. Error msg: Add the class "pull-left", or "pull-right"

In case anybody's interested in slightly more complete guide than just showing how to use backticks to format code, there are two ways to format code:

1. Indent each line four spaces (can be done by highlighting code and pressing the </> button in the formatting bar)


2. Put three backticks (`) and a new line before and after the code:


Protip: If the syntax highlighting isn't very good automatically (it's usually pretty good, though), you can specify the language after the first three backticks:


And if you specify the language as text, it won't highlight anything :)

I hope this helps somebody!

Need help on exercise 6
Totally lost.. "Linking your HTML and JavaScript Files"
I cannot even add my name?
How come every time i write the code it says "Oops, try again. Use the line $('.icon-menu').click(); inside your main function." when I'm doing the exact same as the example?
Number 11 ?/
Actors 1

Thanks @zystvan for the added content :smile:

I also keep this markdown cheatsheet handy!


i :scream: :scream: still need help i don't get it :scream: :rage:


Hey @pewdiepielover,

Copy/paste this into your post, and replace "code here" with your actual code :)

code here


A post was split to a new topic: Need help in the Flipboard lesson


I still dont get how to post your code


To format your code to make it visible:
1. Paste your code.
2. Select all of your code.
3. Do Ctrl + Shift + C (Windows) or CMD + Shift + C (Mac OSX) to format your code.


1. Paste your code in.
2. Insert 3 backticks (`) before and after your code:

Code goes here

Link me
Help on The Big If
How is everybody doing help
Else Problems, I Feel Bad for You, Son
Yep, Font Problem

thanks @jibblyj i think i got it


Hello everyone :smile:

How to insert code into a post: put your code between back quotes ...
How to add back quotes ?

Or click here to watch the video

Option 1: On your keyboard the key above tab

Option 2: type out your code, then select your code with your mouse/cursor then press Ctrl + Shift + C

Option 3: Type out your code select with mouse/cursor then click on the option preformatted text in CodeCademy toolbar

End result when you are typing out your code, in the right hand side box you should see code as well ..

I hope you found this useful, feel free to like, share ect

I can not get past 6/10 Jumbotron Fonts. Can I get some help
Where is the closing div?
7. What if choice1 is paper? SyntaxError: Unexpected token else
Style sheet
Please Help! Font size and color
Pseudo selector
Oops, try again. It looks like your header's font-size is 32px instead of 16px
My friend 'circles' are actually squares!
13: Putting It All Together
22/26 dont understand
Problems with 2/7
Lesson 21 need help
I am also having trouble on 5. Anchor Elements
What did I do wrong
HELP! Stuck in the UNIT 4 LESSON 6
Submenu in bootstrap 3
7. Can't add a font-size of 2rem for the p selector
<p> tags are nested error
None of the image link addresses I use work in editor
Making a website lesson 5 Anchor elements
Font size error
Is there a bug in question 11?
Lesson 7 adding font-size to p selector
There is an error message popping up: $expect is not defined"
Problem with Question 11....cant we take image from desktop or otherwebsite
Codecademy is saying i;m not doing something right when i do exactly what it says
HTML Basics II -Exercise 10 - Font-family error
6. What if choice1 is rock?
Stuck on question 13
6. Please someone explain what's missing :frowning:
Code Processing Error
Trouble with "8. Wrap with a div"
8. Wrap with a div
About You- Make sure you have defined all the variables?
Can't see my footer
6. hey can someone just give the answer for css tag on jumbotron fonts
HTML AND CSS link error?
Introduction-so confused
Lesson 5: link it up, IDK what to do!
After writing this i am getting an error in submit button
I cannot make my second div apear
8. I do but it isn't working
HTML and CSS font error?
Supporting Content 2 Error
2. Multiple Selectors
Supporting content 2 Error
One Selector to rule them all error
Make a website
Neighborhood Images 2 Oops, try again. "Add a second <div class="thumbnail">..</div>"
I cannot move forward, help please (12 сss)
Make a bootstrap images
Yet Another Lesson 8 Div issue
Bootstrap: Navigation: adding ul elements need help please
Oops, try again. Place the supporting content inside the <div class="container">..</div>
An h3 element that says "Travel"
An h3 element that says "Travel"
5. Wrap with a div (I can't seem to get out of this)
Font Family
Help me please ..CSS layout
6 jumbotron fonts
Stuck on Jumbotron Paragraph
Stuck on Jumbotron fonts
7 making comments confused still at beggining code NEED HELPPPP
What mistake iam doing here? please help!
BUG : Stylisez la police !/Récapitulons
Add a Div class icon?
Neighborhood images 6
Still stuck on Clickable Photo Page
Topic 26
Lesson 4 no text on webpage
Lesson 10
This code is not wrking
7. it still shows the err. message
Cant remember the code to change the font?
Cant remember the code to change the font?
Need Urgent Help with #6
Multiple selectors
Linking HTML and CSS
Trouble on neihborhood guides #5
Psuedo selectors
Can anyone help?
HTML Basics ll Question on Font Size
CSS Exercise 15 Confusion
Make a Website: CSS Styling - Navigation, help?
I dont get it
Whats wrong with the code?
Question 12
I need help on lesson 8 whats wrong with mine?
What is wrong?
7. Neighborhood Guides: Images 2
Someone please look at this, i keep getting div thumbnail pop up that its refusing to let me move forward, what am i doing wrong
Stuck on section seven suporting content 2, HTML
Wrap with a div
I'm stuck, PLEASE HELP
Can someone explain how to take a screen shot?

YES! Useful!

I'm having problems with indenting, where I didn't before; this, indeed, makes life that little bit easier - and why not!
Thanks for the tip.


Thank you! That's very helpful!