Workbench
164 results found
-
Change 'concentrate' to 'concatenate'
In the final question on functions, you say 'concentrate' when you intend 'concatenate'.
1 vote -
inelegant sample code
In box [13] you define a Rating variable that you don't need. A simpler solution is
PlayListRatings = [10, 9.5, 10, 8, 7.5, 5, 10, 10]
i = 0
while PlayListRatings[i] >= 6:
print(PlayListRatings[i])
i = i + 1
if(i > 1000):
breakNote this example includes a safety mechanism that avoids infinite looping. I would never teach the while loop without warning students about the dangers of infinite looping. . . .
1 vote -
Vague question about range function
The question says, 'Write a for loop the prints out all the element between -5 and 5 using the range function.' You should specify whether the between includes or excludes the lower and upper bounds. English does not have separate words for each of the four possible cases, so using one word for all four cases creates ambiguity that leads to four possible correct answers.
1 vote -
correct the description of the range() function and type
The instruction refers to the "range object." Why not just say (more precisely) that the range type amounts to an (ordered) sequence of integers, and the range() function generates such sequences? This is computer programming. We can be fully exact from the git go. We don't have to gloss or approximate these little truths for the sake of simplification or summarization.
1 vote -
correct example for if statement with compound condition
The question asks to print the year the album came out. The sample code prints 'This album came out already'. You should make them consistent.
1 vote -
correct information about how string comparison works
Your instructional text says string comparison is according to ASCII collation order. The Python 3 documentation says, "Strings (instances of str) compare lexicographically using the numerical Unicode code points (the result of the built-in function ord()) of their characters." So your statement is only true for ASCII characters. Why not tell the whole truth?
1 vote -
avoid using reserved words as variable names
The sample code creates the variable 'intersection' as a token representing the result of an intersection operation. Inasmuch as the same term is the name of a method defined by the language, it's bad form to use the reserved term as a variable name. I suggest you change it to e.g. 'my_intersection'.
1 vote -
Add instruction for index() function before the quiz on tuples asks the learner to demonstrate its use.
Add instruction for index() function before the quiz on tuples asks the learner to demonstrate its use.
1 vote -
server connections failed in jupyterlab
server connections failed in jupyterlab
24 votes -
Cell Text cut-off bug (Dark Reader Extension)
Jupyter has a bug that causes the cell editor code to be cutoff at the bottom when you switch on and off the Dark Reader extension in Chrome.
3 votes -
add zlib1g-dev
hi please add a thing to install dependencies like
zlib1g-dev
with
apt-get install zlib1g-dev command3 votes -
Code mistake in jupyter notebook
In the juypter notebook for polynomial regression, r2_score() is used incorrectly - true and predicted values are interchanged. Therefore, the values differ from the results provided by .score() from LinearRegression()
1 vote -
l cant use lab please make it proper
The Jupyter lab is not working and is feeling difficult to learn without it
1 vote -
1 vote
-
Mistake in image
Hello,
The image below has a slight mistake. Negative index [-2] should be 10.1
<img src="https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/PY0101EN/Chapter%202/Images/ListsNeg.png" width="1000" />
1 vote -
There is a slight mistake in the "lab-condition branching" code.
hi
just to let you know that there is mistake in the "Lab-Conditions and Branches.
the variable is an integer type and the one given in the condition statement is of string type.1 vote -
Error on problem 5 description
Hi, there is an error in the description of problem 5 of the DB0201EN-Week4-2-2-PeerAssign-v5-py file related to Coursera IBM Course, it's says CENUSDATA, and must say CENSUSDATA.
That's all!
1 vote -
SVM lab
there is a problem with a library in the SVM lab
Just to change:
from sklearn.crossvalidation import traintestsplit
with:
from sklearn.modelselection import traintestsplit1 vote -
1 vote
-
there is an error in the answer sheet for Q1d, (Module 4: Model Development), Data Analysis with Python
Data Analysis with Python
Module 4: Model DevelopmentQuestion 1d: the solution shown is for mpg-mileage, but not for engine-size.
Thx.
1 vote
- Don't see your idea?