print('para instalar o python faça Download do ambiente livre Python 3.4 Anaconda: http://continuum.io/downloads' )para instalar o python faça Download do ambiente livre Python 3.4 Anaconda: http://continuum.io/downloads
saida= 'para instalar o ambiente Python 3.4 Anaconda faça Download: http://continuum.io/downloads'print(saida)para instalar o ambiente Python 3.4 Anaconda faça Download: http://continuum.io/downloads
para instalar o ambiente Python 3.4 Anaconda faça Download: http://continuum.io/downloads
saida2='nesta string eu tenho aspas simples (\') e aspas duplas(")' print(saida2)nesta string eu tenho aspas simples (') e aspas duplas(")
print('um comando' + ' ' + 'que ocupe' + ' ' + 'duas ou mais linhas')um comando que ocupe duas ou mais linhas
texto = '''There are two candidates for the TIOBE programming language of the year award that will be announced around the 1st of January 2015. These are statistical language R (+1.38%) and Apple's new .....'''print(texto)There are two candidates for the TIOBE programming language of the yearaward that will be announced around the 1st of January 2015. These arestatistical language R (+1.38%) and Apple's new.....
texto"\nThere are two candidates for the TIOBE programming language of theyear award that will be announced around the 1st of January 2015. Theseare statistical language R (+1.38%) and Apple's new ...."
print('tamanho do texto é:'len(texto)) tamanho do texto é:510
tamanho do texto é:510
x=10if x < 0: x = 0 print ('Negative changed to zero')elif x == 0: print ('Zero')elif x == 1: print ('Single')else: print ('More')
# Fibonacci series:# the sum of two elements defines the nexta, b = 0, 1while b < 10: print (b) a, b = b, a+b
# Measure some strings:a = ['cat', 'window', 'defenestrate']for x in a: print (x, len(x))