python-radionica/cas2.html

84 lines
2.2 KiB
HTML
Raw Normal View History

2023-03-24 11:00:33 +00:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Uvod u programiranje - 2. čas</title>
<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
<link rel="stylesheet" href="dist/theme/black.css">
<!-- Theme used for syntax hPighlighted code -->
<link rel="stylesheet" href="plugin/highlight/monokai.css">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<p>Uvod u programiranje</p>
<p>2. čas</p>
</section>
<section>
Da ponovimo<br/><br/>
<ul>
<li class="fragment">Domaći / pitanja</li>
<li class="fragment">PyCharm</li>
<li class="fragment">Promenljive</li>
<li class="fragment">Tipovi podataka</li>
</ul>
</section>
<section>
Uslovni izrazi - if<br/>
<ul>
<li class="fragment"><code>if izraz:<br/>&nbsp;&nbsp;&nbsp;&nbsp;ako je izraz istinit</code></li>
<li class="fragment">Primer<br/><code>if a > 0:<br/>&nbsp;&nbsp;&nbsp;&nbsp;print("promenljiva a je veća od nule")</code></li>
</ul>
</section>
<section>
Uslovni izrazi - if, else<br/>
<ul>
<li class="fragment">
<code>
if izraz:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;ako je izraz istinit<br/>
else:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;ako nije istinit
</code>
</li>
</ul>
</section>
<section>
Uslovni izrazi - if,elif,else<br/>
<ul>
<li class="fragment">
<code>
if izraz:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;ako je izraz istinit<br/>
elif drugi_neki_izraz:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;ako je drugi izraz istinit<br/>
else:<br/>
&nbsp;&nbsp;&nbsp;&nbsp;ako nije istinit
</code>
</li>
</ul>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
Reveal.initialize({
hash: true,
// Learn about plugins: https://revealjs.com/plugins/
plugins: [ ]
});
</script>
</body>
</html>