Chapter 11 – Programming Concepts

There are many different programming languages, such as high and low level languages. High level languages are like Python and Java, but we will mainly be focusing on Python. Low level languages are programs like Scratch.  Python is a open source programming language that has easy and readable codes. A variable is a named data that can change over time in the execution of the program. A constant is a data store that does not change in the execution of the program.

An integer in python,  is a positive or negative number which is a whole number. Real number is a positive or negative with a fractional part.  A Char is a variable or  constant in a single character. A  String is several characters in length, a string can also have no characters, it depends on what you are doing. A Boolean variable is only things like True and False or 0 and 1.

There are 2 kinds of loops, for and while loops, For loops keep going and while loop keeps going until a condition is met. The if, elif and else functions do this and you use them for different things, like if is the loop which keeps going until a condition is met. And elif is if the condition is not met this function goes into play. Else is when all the condition is gone this takes over. While:Keeps going until a condition is met, (endless). For:It is set number of times in the beginning.

Validation is to check if the user has inserted the right information and to make them answer the question correctly to proceed on. You can validate by using for and while loops so that they have the question always popping up and will keep until they type in the correct answer.