We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e23162 commit b2aa7acCopy full SHA for b2aa7ac
wasm/app/index.html
@@ -29,10 +29,18 @@
29
<h1>RustPython Demo</h1>
30
<p>RustPython is a Python interpreter writter in Rust. This demo is compiled from Rust to WebAssembly so it runs in the browser</p>
31
<p>Please input your python code below and click <kbd>Run</kbd>:</p>
32
- <textarea id="code">x = 1
33
-y = 2
34
-print('Hello! x + y equals to ' + str(x+y))
35
- </textarea>
+ <textarea id="code">n1 = 0
+n2 = 1
+count = 0
+until = 10
36
+
37
+print("These are the first " + str(until) + " number in a Fibonacci sequence:")
38
39
+while count < until:
40
+ print(n1)
41
+ n1, n2 = n2, n1 + n2
42
+ count += 1
43
+</textarea>
44
<button id="run-btn">Run ▷</button>
45
<script src="./bootstrap.js"></script>
46
<h3>Standard Output</h3>
0 commit comments