Python Tutorial: the print, sleep & input - The 3 Basic commands
These three basic commands you can use in Python, almost always. With them, you can even create the first small programs easily. If you have Python 3 is not yet installed on your computer, you can use it for free in our download area download.
- In actually, every Python program, the print command before. With this, you can let the program words, Numbers or phrases to be output. You always write as the first "print" (without the quotation marks) and then write in brackets what it should be spent. You can enter either directly (e.g., "print ('Test')") or a Variable, integrate: for example, "print ('Hello' + x + '! Nice to meet you!')" The x is replaced in this case by a name that is stored in the variable x.
- Very important the variables are in Python. This can be set either directly in the Code (e.g. "x = 3") or with an Input-command request: "x = input ("...")" Between the quotes, you can formulate, for example, a question such as "what's your name?". The Name is then automatically stored under the variable x.
- If you want the program to wait before it executes the next command, you need to integrate it into the Code with a sleep command. For this, you must first import it with the command "from time import sleep" the sleep module, and then in the next line "sleep (1) write". The value in the parenthesis stands for the number of seconds to wait.

Python 3: Coding Tutorial
Tutorial for Python: If-Then-functions (conditions) in Python
In almost every Python program you need conditions. There are a few things to consider in order for everything to work properly.
- You always write as the first "if" and then the condition. The Whole thing could look like this: "if x == 0:" (without the outer quotation marks). If now the Variable x is exactly 0, the condition, and the command, under this condition, is executed.
- If you want to use multiple conditions, you can use the first condition, namely "if", all other in the beginning, however, the "elif".
- If none of the conditions is true, the commands running under "else:" are.
- If you want to test whether a Variable x has a certain numerical value with "==" (without the quotation marks) the Same way you can also test whether x is greater, smaller, greater or equal or smaller or equal to a certain value. This is done with ">", "=" or "
