What is Python?
Python is a scripted, interpreted, imperative, object-oriented, functional, dynamically typed, and strongly typed programming language.
It was launched by Guido van Rossum in 1991.
if x == 1:
#indentation is mandatory in Python.
print("x is 1.")
The language was designed with the philosophy of emphasizing the importance of programmer effort over computational effort.
Prioritizes code readability over speed or expressiveness.
It combines a concise and clear syntax with the powerful features of its standard library and third-party developed modules and frameworks.
Python is a high-level, multi-paradigm, general-purpose language, supports object-oriented, imperative, functional, and procedural paradigm.
It has dynamic typing and one of its main features is that it allows easy reading of the code and requires few lines of code compared to the same program in other languages.
Due to its characteristics, it is mainly used for text processing, scientific data and creating CGIs for dynamic web pages.
It was considered by the public the 3rd "most loved" language, according to a survey conducted by Stack Overflow in 2018, and is among the top 5 most popular languages, according to a survey conducted by RedMonk.
Using Python
# or
Ctrl + D
print(item)
print("A is greater than 2")
horas = float(qtd_horas)
taxa = float(valor_hora)
{"if horas <= 40:"}
salario=horas*taxa
else:
h_excd = horas - 40
salario = 40*taxa+(h_excd*(1.5*taxa))
return salario
with open("diretorio/arquivo.csv", "r") as entrada:
ler = csv.reader(entrada)
next(ler)
for linha in ler:
print(linha)
Note: The name Python originated from the British comedy group Monty Python.