Procesul Decizional in python

postat acum 3 ani de Stefanescu Mihai in categorie Python

In acest articol am sa vorbesc despre luarea de decizii si punerea de conditii in timpul executarii aplicatiei.

Procesul de luare a deciziilor evalueaza una sau mai multe expressi si returneaza TRUE sau FALSE, iar decizia luata va fi stabilita de rezultatul conditiei.

In python, orice valoare valoare mai mare de zero sau diferita de null este considerata ca fiind TRUE.

Python ne pune la dispozitie urmatoarele expresii conditionale:

Expresie

Descriere

if

Ca in orice alt limbaj de programare, daca conditia este TRUE este executat codul.

if...else

Ca si in cazul if-ului daca conditia este TRUE este executat codul, altfel este executat else-ul.

if imbricat

In python putem folosi un if in interiorul altui if/else.

Iata si un exemplu de if:

var = 23

if ( var  == 23 ) : print "Salut!"

print "Pa!"

 

Sunt un tanar programator din Bucuresti ce lucreaza in PHP/Mysql (MySqli/PDO), Laravel, CodeIgniter, MySQL, PostgreSQL, Wordpress, HTML5/CSS3, Sass, Photoshop si multe altele.
Google+ Community Facebook Group

Comentariu postate de minecraft free la data de 14.05.2019
Thanks , I have recently been looking for information approximately this topic for a long time and yours is the greatest I've came upon so far. But, what about the bottom line? Are you sure concerning the source?
Comentariu postate de minecraft download la data de 15.05.2019
This is the perfect website for anybody who would like to understand this topic. You understand a whole lot its almost tough to argue with you (not that I really would want to…HaHa). You certainly put a fresh spin on a subject that has been written about for years. Wonderful stuff, just great!
Comentariu postate de download minecraft for free la data de 16.05.2019
Unquestionably believe that which you said. Your favorite justification appeared to be on the internet the easiest thing to be aware of. I say to you, I definitely get irked while people think about worries that they plainly don't know about. You managed to hit the nail upon the top and defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks
Comentariu postate de minecraft download for free la data de 16.05.2019
It's hard to find knowledgeable people for this topic, however, you seem like you know what you're talking about! Thanks