- Notifications
You must be signed in to change notification settings - Fork581
Fixes #14: Correctprint
function usage for Python 3 compliance#15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
minimalProviderAgentMarket wants to merge1 commit intoKyubyong:masterChoose a base branch fromminimalProviderAgentMarket:53153ce0-e725-4d3d-88dd-ea80d1a69e4a
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
Update print function calls in Jupyter notebook from Python 2 style to Python 3 style with parentheses. This change maintains compatibility while keeping the notebook's functionality intact. No logic changes were made, only syntax updates for print statements.
Sign up for freeto 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.
Pull Request Description
Overview
This pull request addresses a bug described in Issue#14 titled "A Little Bug". The issue pertains to the use of print statements in the provided solutions, which utilize Python 2 syntax that is incompatible with Python 3. This update ensures all print statements in the relevant files conform to Python 3 syntax by including necessary parentheses.
Changes Made
10_Random_sampling_Solutions.ipynb
. The following updates were made:print np.mean(out3)
toprint(np.mean(out3))
print np.random.choice(x, p=[.3, .5, .2])
toprint(np.random.choice(x, p=[.3, .5, .2]))
Additional Notes
While the modifications in
10_Random_sampling_Solutions.ipynb
have been completed successfully, it is important to recognize that other notebooks may contain similar issues. Future efforts should focus on reviewing and correcting those files as well.Issue Reference
This pull request fixes the bug reported in Issue#14.
Fixes#14
Please review the changes and let me know if you have any questions or if further modifications are necessary!