mirror of
https://github.com/davrot/pytutorial.git
synced 2025-06-06 04:00:03 +02:00
Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
a6887bee30
commit
bd29bc7422
1 changed files with 8 additions and 1 deletions
|
@ -28,7 +28,14 @@ This program does nothing.
|
||||||
{% raw %}
|
{% raw %}
|
||||||
<pre class="mermaid">
|
<pre class="mermaid">
|
||||||
flowchart TD
|
flowchart TD
|
||||||
start([Start]) --> inita{{"a ← 1"}} -->stop([Stop])
|
start([Start]) --> inita{{"a ← 1"}} --> initb{{"b ← 1"}} --> add("c ← a+b") --> printc[/"print c"/] -->stop([Stop])
|
||||||
</pre>
|
</pre>
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
In Python:
|
||||||
|
```python
|
||||||
|
a=1
|
||||||
|
b=1
|
||||||
|
c=a+b
|
||||||
|
print(c)
|
||||||
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue