Skip to content

Instantly share code, notes, and snippets.

@christiancost47
Last active June 3, 2020 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiancost47/bb3f2d731a0815f49a266b8a98aca1a4 to your computer and use it in GitHub Desktop.
Save christiancost47/bb3f2d731a0815f49a266b8a98aca1a4 to your computer and use it in GitHub Desktop.

Intro

  • Artigos Data Hackers
  • Github Survey
  • Site oficial

Goals

  • Crash Intro
  • Base for other stuff (files, csv..., and other languages)
  • About the language

Fist steps

  • Comments

Variables

  • Variables naming

  • Precise and descriptive

  • Snake case

    @var 1ºnome

    primeiro_nome segundo_nome

Python Types

tipo_boolean = True
tipo_inteiro = 10
tipo_float = 3.4
tipo_string = "Isso é uma string"

Print statement

print(tipo_boolean)
print("Hello universe")

Input

valor = input("Me passe qualquer valor") #trata tudo o que recebe como string


num_inteiro = int(input("Digite um valor inteiro: "))


nome = str(input("Digite seu nome: "))

num_float = float(input("Digite um valor flutuante: "))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment