[Basics, Conditionals, and List Methods]: Corrected Typos, Formatting, & Grammar Issues#4179
Open
BethanyG wants to merge 1 commit into
Open
Conversation
…als, and list-methods.
27 tasks
Yrahcaz7
suggested changes
May 15, 2026
|
|
||
| >>> 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. |
There was a problem hiding this comment.
Since this was changed, the occurrence on line 75 should be as well.
| Otherwise, returns the result of object.__str__() (if defined) | ||
| or repr(object). | ||
| encoding defaults to sys.getdefaultencoding(). | ||
| encoding defaults to 'utf-8'. |
There was a problem hiding this comment.
Was this statement just incorrect before? I think sys.getdefaultencoding() doesn't always return "utf-8".
| ... else: | ||
| ... say = str(number) | ||
| ... | ||
| ... return say |
There was a problem hiding this comment.
It seems like this block got indented by an extra space during the reformatting.
|
|
||
|
|
||
| >>> driving_status(63, 78) | ||
| 'Unlicensed!' |
There was a problem hiding this comment.
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.') |
There was a problem hiding this comment.
This needs the ' in the middle of the string to be escaped now.
| ... else: | ||
| ... say = str(number) | ||
| ... | ||
| ... return say |
There was a problem hiding this comment.
This block also got indented by extra space.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please see Issue 4165 for more details.