Created
April 18, 2014 16:46
-
-
Save samueltcsantos/11053582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Created on 18/04/2014 | |
@author: Samuel T. C. Santos | |
Declarando variaves no python. | |
''' | |
#variaveis tipo string | |
mensagem = "Eu adoro Python!" | |
#variavel tipo inteiro | |
a = 4 | |
#variavel do tipo real | |
b = 3.14 | |
#variavel do tipo lista | |
lista = ['1','2','3','5'] | |
#variavvel do tipo tupla | |
tupla = (a, b) | |
#variavel do tipo mapa | |
mapa = {a : "aaaa", 2 : "uius"} | |
print (mensagem) | |
print (a) | |
print (b) | |
print (lista) | |
print (tupla) | |
print (mapa) | |
''' | |
Saida do programa: | |
Eu adoro Python! | |
4 | |
3.14 | |
['1', '2', '3', '5'] | |
(4, 3.14) | |
{2: 'uius', 4: 'aaaa'} | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment