Adding items to a list

--Originally published at Fundamentos de Programación

4wbvz4w_700wa_0

This time I did a simple program that asks the user a question to complete a sequence of a list known as “x”. The missing number on the list is the number 2 so when the user types an answer the program will check whith an “if” if the number that was typed is indeed the correct one, giving diferent outputs if the user is correct or incorrect.

list

This is how it runs:

list run

The mastery topics for this lesson are basic output, basic user input, use of the conditional “if” and creation of lists.

#TC101 #python