Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bio-IT Workshops
Intermediate Python
Commits
0e6a1f1d
Verified
Commit
0e6a1f1d
authored
Jul 09, 2020
by
Toby Hodges
Committed by
Renato Alves
Jul 20, 2020
Browse files
add note about $ in command line blocks
parent
0b8001d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
_episodes/04-argparse.md
View file @
0e6a1f1d
...
...
@@ -63,8 +63,8 @@ $ python argv_example1.py one 2 3.0 four,five
{: .language-bash }
~~~
START
argv_example1.py
one 2 3.0
four,five
argv_example1.py
['code/
argv_example1.py
', 'one', '2', '3.0', '
four,five
']
code/
argv_example1.py
one
2
3.0
...
...
@@ -73,6 +73,12 @@ END
~~~
{: .output }
**Note about Bash code blocks:**
we include
`$`
to represent the shell prompt in commands like those above
(
`cat argv_example.py`
&
`python argv_example1.py one 2 3.0 four,five`
).
When reproducing these commands on your own system,
you should leave that extra
`$`
symbol out.
> ## 4.1. Carry the Zero
>
> - What does `sys.argv[0]` return when you run it in a script?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment