Challenge
Let's do one more task as practice!
Taak
Swipe to start coding
You have the dataset about Abbisian cats where the number of calories the cat eats every day of a certain weight is indicated (array x - weight, y - number of calories).
- [Line #19] Find the correlation coefficient between
xandy(in any convenient way), the slope, and the intercept of a straight line which shows the trend. - [Lines #22-24] Print these values in the order mentioned above.
- [Line #27] Build line using function
line()and save inbuilt_linevariable usinglist(map()). - [Lines #30-31] Build the line using
matplotlib.pyplotfunctions.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 4
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Suggested prompts:
Vat dit hoofdstuk samen
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 4.76
Challenge
Veeg om het menu te tonen
Let's do one more task as practice!
Taak
Swipe to start coding
You have the dataset about Abbisian cats where the number of calories the cat eats every day of a certain weight is indicated (array x - weight, y - number of calories).
- [Line #19] Find the correlation coefficient between
xandy(in any convenient way), the slope, and the intercept of a straight line which shows the trend. - [Lines #22-24] Print these values in the order mentioned above.
- [Line #27] Build line using function
line()and save inbuilt_linevariable usinglist(map()). - [Lines #30-31] Build the line using
matplotlib.pyplotfunctions.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 2. Hoofdstuk 4
single