-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython1.html
31 lines (29 loc) · 855 Bytes
/
python1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Python Emulation</title>
<link href="style1.css" rel="stylesheet" type="text/css">
<!-- <script src="./assets/js/brython.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.10.0/brython.js"></script>
</head>
<body>
<!-- Your HTML content goes here -->
<!-- Script to emulate Python code -->
<script type="text/python">
# Your Python code goes here
print("Hello from Python!")
x = 10
y = 20
result = x + y
print("Result:", result)
</script>
<!-- Script to initialize Brython -->
<script>
window.onload = function () {
brython();
};
</script>
</body>
</html>