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!
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
Getting error for nth child task
5.Neighborhood guides:grid
Error Impossible to Fix! HELP!
Just Weight & See: Error
Neighborhood Guides: Images 2
How do I print out the total on lesson 13. lets check out
Supporting Content 2
Jquery 4
HTML Basics font color-Oops, try again. It looks like your second paragraph's font-size is 12px instead of 10px
Before and after - error message
Cant remember the code to change the font?
7.Disable the button 1
Whats wrong with my code ? :/
Code syntaxis problem
Armando Perez project task #2, need help
1 all html elements are selectors
Set the height of the <div class="jumbotron">..</div> to 500px
13. Else Problems, I Feel Bad For You
I have a problem with grids
What's wrong with this code?
11. Not understanding why its acting this way
While loop, review!, they just don`t work!
I keep geting friends undifined
9/9 Unexpected Indent
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"

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
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
Bootstrap: Neighborhood Guides-Images 2
Help me!
About you
5/8 stuck
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%
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"
What should Navigation 2 look like when completed?
Help on Neighborhood: Grid please
Need help with 5. Neighborhood Gides: grid
6. Supporting Content 1
Stuck at step 8
6. Jumbotron: Fonts
Nav 2 Web view incorrect
6. Supporting Content 1
Stuck at step 8
5. Jumbotron - Paragraph -- I have tried everything
Problem with 9
Background-size: cover;
Else: #If Random Operator=3/Else,it will ask subtraction question
The Big If
I am stuck at 92%
Lesson 4 large figure
Lesson 5 wrap div
Lesson 1
7. No idea what I'm doing wrong here
Please help!
.5 Neighborhood-Guides: Grid
Images and Links1 - In-completing
Wrap a div
Please help!
Number 11 ?/
7. Neighborhood Guides: Images 2
Stuck on nav 2!
7. Image 2 NEED SERIOUS HELP! I have no idea whats wrong!
( Neighborhood guides images 2) Lesson 6 won't submit
Step 7. cant figure it out, need tips
7. Image 2 NEED SERIOUS HELP! I have no idea whats wrong!
I dont know what i did wrong
I'm not sure the images on here verses the actual code but here is another try
I am stuck at 92%
Having a little difficulty with : 7. Neighborhood Guides: Images 2
Where is the problem I don't understand this lesson help me
Exercises 6. and 8. - Common problems
Issues with tutorial 8 — Learn More: Heading
Exercise 9. Error Message
5.Neighborhood Guides: Grid
How did you finish 2: "set font weight to bold"?
What's wrong, I can't finish the 6th step
What is wrong here? I cant finish it
Where I fault ? help me
Thumbnail wont work
Where I fault ? help me
Disable Button 1 : Make sure you have defined all the variables!
Lesson 8 Wrap with a div Solution?
Jombotron fonts - Cannot figure out what I am missing
What's wrong, I can't finish the 6th step
Neighborhood Guides: Images 2
How do I test to see if my project code is actually working?
When will the projects be working again?
Codebits cause browser to crash
Locked my self out of my account
Need Help with MOVE - supporting content
Common email, password and Login issues
7/11 creating class methods
4. Displaying the Balance
7. Can someone help?
Compressing text
The big if, the flying circus
Email placeholder
Not able to access movies database from /actors
5., 6. & 7. Some best practices to avoid errors
8: Part of the Whole. What am I doing wrong?
HELP 4. First move
6.5 Show a destination (link_to "See more")
Revoke course registration?
2. what?
8. Error msg: Set the border-bottom to '1px solid #dbdbdb'
Can't figure out what's wrong on #7
What features do you want to see in a Pro Product?
Paid, charged but no Pro account | Payment issue
Password bug
Jumbotron fonts help
Am having a problem with the syntax here.Please someone help me with this urgently
Jquery codebit link
I cant seem to figure out what i did wrong
A cool code
Unable to find error in my jquery progaram
4 moving elements around. please help
Exercises 6. and 8. - Common problems
I dont know how to move forward
Listing Everybody
12. Append to Body - Completely stuck!
Student Becomes the Teacher(Part of the Whole)
The Big if()
Help my moon orbit my earth please!
Exercises 6. and 8. - Common problems
Fading the div to 1
About You (paragraph font size tag error)
Help with 4/6 please!
Innovation Cloud btn:hover
Envolver con div no encuentro mi herror
Supporting content 2 Err
Project "Best Bite"
I cant figure divisions
Plz help on part 8 says that the second paragraph is sixe 16 when it should be 10!
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
What if Choice is Scissors (Part 8) Help
"Float Object Not Callable", 11.8
Here is what I have done and I am still getting an error message. Help!
Segments does not appear in columns. (Yet I'm able to continue.)
I am stuck on lesson 12 of css: an overview, help plz
Threadly - is it supposed to display the comments?
Python Codebit Question?
How much dedicated RAM do I need to run Codecademy?
4. What is wrong with my code?
Python Paddleball Game
Need help with 23?
5. Filters II unable to display pubdate via index.html
Hangman simulator, Unindent Does not match any outer indentation level
I need to have a same functionality for two calendars can anyone help
Make a Website Bootstrap: 7/14 What am I doing wrong?!
Slip and slide
9.2 <p class="likes">+ {{ product.likes }} </p>
Cant find my error
Sound not playing
Transportaion Troubles!
jQuery lesson 3-11
Lesson 18: Show It If You Know It! Color not changing
Please help
Please someone help me with if statement
I need help on 2. Taking up space
Stucked in the lesson 10 ..please help ..dnt know why i cant access the next lesson
Help me please, I'm stuck
5/19 Functions Calling Functions Help

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
Number 11 ?/
Actors 1
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?
I cannot even add my name?
Totally lost.. "Linking your HTML and JavaScript Files"

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
Yep, Font Problem
Else Problems, I Feel Bad for You, Son
How is everybody doing help

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

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!