Skip to content

Commit

Permalink
Fixed Issue#2190 | Homepage code syntax error (#2191)
Browse files Browse the repository at this point in the history
* Fixed Issue#2190Now the Homepage code sample doesn't have syntax error

* Another minor typo in the next line

Co-authored-by: Eshaan <eshaan@pop-os.localdomain>
  • Loading branch information
eshaanmandal and Eshaan committed Jan 17, 2023
1 parent 7208dd0 commit b41f5e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions codesamples/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def initial_data():
(
"""\
<pre><code><span class=\"comment\"># Simple output (with Unicode)</span>
>>> print(\"Hello, I'm Python!\")
>>> print("Hello, I'm Python!")
<span class=\"output\">Hello, I'm Python!</span>
<span class=\"comment\"># Input, assignment</span>
>>> name = input('What is your name?\\n')
>>> name = input('What is your name?\n')
<span class=\"output\">What is your name?
Python</span>
>>> print(f'Hi, {name}.')
Expand Down

0 comments on commit b41f5e4

Please sign in to comment.