#Mastery11

Conditionals

If, else, elif. Basic codes that are used to create programs, here is an introduction to them:

1.- Make a question.

2.- Ask the user to write an answer.

3.- Once that the user writes something, the if conditional checks if it is true and makes what you want.

4.- The «else» conditional will make what you what if the first statement was not true.

Example:

Elif is useful when you want another condition to happen if thee previous one was false. For example:

For more info:

http://www.mclibre.org/consultar/python/lecciones/python-if-else.html

Deja un comentario

Diseña un sitio como este con WordPress.com
Comenzar