Skip to content

Instantly share code, notes, and snippets.

@RomanOMG91
RomanOMG91 / math.py
Created July 9, 2021 16:10
Beginner Python
# Find the minimum number
x = min(5, 10, 25)
# Find the Maximum number
y = max(23455, 89000, 250000)
# Print the minimum and maximum
print(x)
print(y)
<!DOCTYPE html>
<html>
<script src="myailib.js"></script>
<script src="myplotlib.js"></script>
<body>
<canvas id="myCanvas" width="400px" height="400px" style="width:100%;max-width:400px;border:1px solid black"></canvas>
<p>Train me to find the line of best fit:</p>
<p>
<button onclick="train(100)">100 times</button>
<button onclick="train(200)">200 times</button>
@RomanOMG91
RomanOMG91 / index.html
Created June 29, 2021 17:57
Basic HTML webpage
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
@RomanOMG91
RomanOMG91 / beginner.py
Created June 29, 2021 17:54
If you want to learn python here is a simple python script.
#This will find the answer to 5+1
5+1
#This will show Hello Python
print ("Hello Python");
# Insert Your Name
print ("Name")
# This is how to create integers
x = 1
y = 35478
Z = - 8977324
alert("Roman Singh Deol") ;
document.write("Roman Singh Deol");
console.log("Roman Singh Deol");