As I said in the previous lesson, Access Here , I have to you 5 challenges to you practice your ability. 1- Make an algorithm that ask to user type numbers, the stop condition is when was typed the Number 0, say to user the stop condition. 2- Make an algorithm that aks to user many numbers, use the stop condition, when the user type 0, so print the sum result at display. 3- Make an algorithm that ask to user type a number and so use a do while to decrement this number up to 0. print them at display. 4- Make an algorithm that ask to user a number, you’ll multiplies by its predecessor up it be 0. Print all the process. 5- Make an algorithm that as to user letter, user the variable different of space character as condition. In the next lesson, we’ll see the Command While. Share it with your friends! Well, that’s all folks! See you later!
Hello folks! Now I present to you the lesson 2 of Python Course. In this lesson, we’ll see the first steps and began to programming. Below, see a small introduction. Python is an interpreted programming language, what’s it? See below a definition. Literally defined, a language which is not compiled directly into machine code. Most Scripting Languages are Interpreted Languages, since they are executed directly from their textfile format, and no intermediate format is stored on disk. Source: http://wiki.c2.com/?InterpretedLanguage Now, let’s go to began coding. I use the default interpreter that’s available when you install Python in your computer, but you can use other softwares. Open your IDE and create a new file. See the image below. This is the file created. Now, let’s go to some important things. The input and output commands in Python language. Note: I’m using python3.6, as whole course will be done. In ...
As promised in the previous class, I present to you this lesson about variables. First we need to answer some questions. First, what’s a variable? The answer is: a variable is a space inside a memory, it save data and in programming languages, it also works for change the data inside it. Python is an high-level language, an high-level language is nearer of programmer, or human language like English for example. Python is simple! See below the variable declaration in languages like C, C++ or Java: This is the variable declaration structure, but in Python, we don’t need of this structure. So, declare the type isn’t required, but we need to initializer the variable. Below, see the variable declaration structure in Python: That’s enough, here we have the variable declaration in Python language. This structure is: variable_name = a_value, it can be a string too, or just a character. Test it in your interpreter, joyful! If you want to use other...
Comentários
Postar um comentário