Skip to content

Commit

Permalink
Fix to handle colon in the answer
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarer committed Nov 4, 2024
1 parent 3a65771 commit 402985f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _sources/web/parsingXML.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Look at the code below and predict what will be printed.

What is the last thing (last line of text) that will be printed when the code below runs?

- :['"]?Attr: None['"]?: The default is to print None if there is no attribute with that name when you use ``.get('name')``.
- :['"]?Attr\: None['"]?: The default is to print None if there is no attribute with that name when you use ``.get('name')``.
:['"]?None['"]?: Something will be printed before the value. Look at the print statement again.
:.*: What is the default value when there is no attribute with that name?

Expand Down

0 comments on commit 402985f

Please sign in to comment.