Pular para o conteúdo principal

Postagens

Mostrando postagens de setembro, 2021

Logic Programming With Python - 02

  Basic concepts Some basic concepts are very important for learning programming. They are variables, mathematical operators, logical operators and loops. We will study these concepts through a practical approach using the Python language. Python is a general purpose programming language that has become very popular for being easy to learn and use, having several frameworks and libraries , being versatile, efficient, fast, flexible and having good support for machine learning. Our goal is not to deepen learning about Python. For more details on Python, visit the official language page https://www.python.org/ But we will use language Python to learning the basic concepts of Programming Logical Then, lets go To begin is need install the Python. We will go use the 3.x version. download You can use vim, notepad, notepad++ or any other text editor. To develop the code examples for this article Variables We can describe a variable as a part of memory where we store data to process or disp

Logic Programming With Python - 01

What is Programming Logic? The definition of Programming Logic depends on the conceptual understanding of the Algorithm . We can describe an algorithm as a set of steps to achieve a goal. Ex 01: What are the activities we need to do to go to work ? 1- wake up 2- take a shower 3- have a breakfast 4- take a car/bus or walk Ex 02: What are the steps needed to calculate the maximum load supported by a building? Ex 03: What are the steps needed to launch a rocket into space? In practice, we naturally apply the concept of algorithms to perform from the simplest to the most complex tasks. And the most important thing is to realize that if we follow these steps we will always achieve the same results considering an initial set of data. Like a cake recipe,  that is, if we have all the necessary ingredients with their respective quantities and we follow the recipe, the result will be the desired cake. Well, now I believe that we  can describe what is Programming Logic Programming Logic is a dis