This file contains 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
''' For more visit | |
https://www.codersarts.com | |
''' | |
import pandas as pd | |
from sklearn.linear_model import LinearRegression | |
from sklearn.metrics import mean_squared_error |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>Never create booleans as objects.</p> | |
<p>Booleans and objects cannot be safely compared.</p> |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>Display the value of Boolean(20 > 19):</p> | |
<button onclick="myFunction()">Try it</button> |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math</h2> | |
<p>Math.floor(Math.random() * 20) returns a random integer between 0 and 19 (both |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math.random()</h2> | |
<p>Math.random() returns a random number between 0 (included) and 1 (excluded):</p> |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math.min()</h2> | |
<p>Math.min() returns the lowest value in a list of arguments:</p> |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math.sin()</h2> | |
<p>Math.sin(x) returns the sin of x (given in radians):</p> |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript Math.PI</h2> | |
<p>Math.PI returns the ratio of a circle's circumference to its diameter:</p> |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<p id="demo"></p> | |
<script> |
This file contains 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
#Codersarts | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<h2>JavaScript setHours()</h2> | |
<p>The setHours() method sets the hours of a date object:</p> |