Skip to content

Commit b35f56c

Browse files
sblondonewdurbin
andauthored
fix input-output order in interpreter example (#1763)
* fix input-output order in interpreter example * Convert a string to f-string in the demo from wkeithvan and ewdurbin Co-authored-by: Ee W. Durbin III <ewdurbin@gmail.com> Co-authored-by: Ee W. Durbin III <ewdurbin@gmail.com>
1 parent 8fb297f commit b35f56c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codesamples/factories.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ def initial_data():
3131
3232
<span class=\"comment\"># Input, assignment</span>
3333
>>> name = input('What is your name?\\n')
34-
>>> print('Hi, %s.' % name)
3534
<span class=\"output\">What is your name?
36-
Python
37-
Hi, Python.</span></code>
35+
Python</span>
36+
>>> print(f'Hi, {name}.')
37+
<span class=\"output\">Hi, Python.</span></code>
3838
</pre>
3939
""",
4040
"""\

0 commit comments

Comments
 (0)