Skip to content

chambers-yamasaki submission#5

Open
ayamasaki2011 wants to merge 6 commits into
lyy005:masterfrom
ayamasaki2011:master
Open

chambers-yamasaki submission#5
ayamasaki2011 wants to merge 6 commits into
lyy005:masterfrom
ayamasaki2011:master

Conversation

@ayamasaki2011

Copy link
Copy Markdown

No description provided.

Comment thread Exercise6.py
import matplotlib.pyplot as plt
plt.plot(UWscore['time'], UWscore['cum_sum'], 'r-', MSUscore['time'],
MSUscore['cum_sum'], 'g-')

@lyy005 lyy005 Oct 12, 2017

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Good job. The graph looks good and the way you use to calculate the cumulative sum is great.

The only problem is that when you plot two lists, the graph will make a straight line to connect two data points. The score of the intermediate score may not be correct

Comment thread NumberGuess.py
guess=int(input(prompt="Your guess:")) #Store a guess from the user

while guess != answer: #Test if the user input is right
if guess < answer: #If not, test whether the guess is lower or higher than the answer

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The code looks good. You may want to put "guess=int(input(prompt="Your guess:"))" within the while loop so that you don't need to run the code after the first input

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.

3 participants