html
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
<!DOCTYPE html>
<html>
<head>
<title>Python Basic Calculator</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.7.1/brython.min.js"></script>
<style>
.calculator {
width: 180px;
margin: 10px auto;
border: 1px solid #ccc;
padding: 5px;
border-radius: 5px;
}
.display {
width: 84%;
height: 20px;
text-align: right;
padding: 10px;
font-size: 16px;
border: 1px solid #ccc;
margin-bottom: 5px;
border-radius: 50px;
}
.buttons {
width: 100%;
}
.buttons button {
width: 20%;
css
css
1
2
3
body {
}
js
js
1
BROWSER
Console
Run