New user? Sign up

Existing user? Log in

This didn't seem very clear to me on the formatting guide. How do I express Python code in a grey code box?

Thanks in advance!

Note by Ahaan Rungta 4 years, 12 months ago

Easy Math Editor

*italics*

_italics_

**bold**

__bold__

- bulleted- list

1. numbered2. list

paragraph 1paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)

> This is a quote

This is a quote

# I indented these lines # 4 spaces, and now they show # up as a code block. print "hello world"

2 \times 3

2^{34}

a_{i-1}

\frac{2}{3}

\sqrt{2}

\sum_{i=1}^3

\sin \theta

\boxed{123}

Sort by:

If you want to add code to a normal sentence, you can do that too. Just put ` around your code.

you can do that too

Log in to reply

Indent each line of code an extra four spaces I think.

Thanks! That worked.

can we get problems based on C??

Your mean is using C programming language, Jannatul?

Problem Loading...

Note Loading...

Set Loading...

Easy Math Editor

`*italics*`

or`_italics_`

italics`**bold**`

or`__bold__`

boldNote: you must add a full line of space before and after lists for them to show up correctlyparagraph 1

paragraph 2

`[example link](https://brilliant.org)`

`> This is a quote`

Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.`2 \times 3`

`2^{34}`

`a_{i-1}`

`\frac{2}{3}`

`\sqrt{2}`

`\sum_{i=1}^3`

`\sin \theta`

`\boxed{123}`

## Comments

Sort by:

TopNewestIf you want to add code to a normal sentence,

`you can do that too`

. Just put ` around your code.Log in to reply

Indent each line of code an extra four spaces I think.

Log in to reply

Thanks! That worked.

Log in to reply

can we get problems based on C??

Log in to reply

Your mean is using C programming language, Jannatul?

Log in to reply