Skip to content

[Basics, Conditionals, and List Methods]: Corrected Typos, Formatting, & Grammar Issues#4179

Open
BethanyG wants to merge 1 commit into
exercism:mainfrom
BethanyG:fix-typos-basics-conditionals-listmethods
Open

[Basics, Conditionals, and List Methods]: Corrected Typos, Formatting, & Grammar Issues#4179
BethanyG wants to merge 1 commit into
exercism:mainfrom
BethanyG:fix-typos-basics-conditionals-listmethods

Conversation

@BethanyG
Copy link
Copy Markdown
Member

Please see Issue 4165 for more details.

Comment thread concepts/basics/about.md

>>> math.pow(2,4) # Calling the pow() function from the math module
>>> import math
>>> math.pow(2,4) # <--Calling the pow() function from the math module.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this was changed, the occurrence on line 75 should be as well.

Comment thread concepts/basics/about.md
Otherwise, returns the result of object.__str__() (if defined)
or repr(object).
encoding defaults to sys.getdefaultencoding().
encoding defaults to 'utf-8'.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this statement just incorrect before? I think sys.getdefaultencoding() doesn't always return "utf-8".

... else:
... say = str(number)
...
... return say
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this block got indented by an extra space during the reformatting.



>>> driving_status(63, 78)
'Unlicensed!'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the indentation of the else statement was changed, this example no longer works.

... if thing:
... print('This is Truthy.')
... else:
... print('Nope. It's Falsy.')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs the ' in the middle of the string to be escaped now.

... else:
... say = str(number)
...
... return say
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block also got indented by extra space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants