<!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/> ako je izraz istinit</code></li> <li class="fragment">Primer<br/><code>if a > 0:<br/> 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/> ako je izraz istinit<br/> else:<br/> ako nije istinit </code> </li> </ul> </section> <section> Uslovni izrazi - if,elif,else<br/> <ul> <li class="fragment"> <code> if izraz:<br/> ako je izraz istinit<br/> elif drugi_neki_izraz:<br/> ako je drugi izraz istinit<br/> else:<br/> 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>