Postagens

Mostrando postagens com o rótulo Python

Course Python For Life 4 – Variables

Imagem
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...

Course Python For Life 3 – Input Command

Imagem
As was promised in the previous lesson, now we’ll see the input command in python language, it’s a smaller lesson, next lesson, we’ll see variable’s concepts in Python that’s different of others languages. First step: - I recommend that you use the output command. In python, input command requires a variable. There’s two ways to use this command, they’re: - with print. - without print. Note: In python, you don’t need to use ‘;’ in the end of a line, it works, but it isn’t required. With print: print(‘type any key...’) a = input() Test it yourself! See it in the editor: Run and see what happen. It required that the use type any thing by the keyboard. Below, see it being ran. But there’s other way to do this code, see below: a = input(‘Press any key...’) Test it yourself! Think about it, that’s the way to learn! The appearance is:   ...

Course Python For Life 2

Imagem
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 ...

Course Python for Life 1

Imagem
Hello people! I present for you the newest course. Its name is Python For Life. This course will help you to learn this programming language. So, in this introduction, I’ll show to you some things about the language and in the next lesson, we’ll work with it. Now, a resume about Python programming language history. Python is a widely used high-level programming language for general-purpose programming , created by Guido van Rossum and first released in 1991. An interpreted language , Python has a design philosophy that emphasizes code readability (notably using white space indentation to delimit code blocks rather than curly brackets or keywords), and a syntax that allows programmers to express concepts in fewer lines of code than might be used in languages such as C++ or Java . The language provides constructs intended to enable writing clear programs on both a small and large scale. Python was conceived in the late 1980s, and its implementation began in ...

NEWEST!! Presentation – Course Python

Imagem
Is with a great honor that I present the newest course in this blog. Now we’ll study the Python programming language. With this course, you’ll have new horizons and possibilities, so share this newest with your friends and follow us by e-mail for reserves the newest. Subscribe us if you desire. So, see you later to study python language.