Ministério da Educação
Brasil um país de todos
Personal tools
Navigation
Log in


Forgot your password?
 
Document Actions

slides06-ex2.py

by Cicero Garrozi last modified 2015-09-15 07:33

Click here to get the file

Size 1 kB - File type text/python-source

File contents

s = input("Digite o seu nome:").upper()
novo = ""
for elem in s:
    novo = elem + novo #ordem inversa
    #novo = novo + elem #ordem normal
print(novo)

#atalho: s[::-1].upper()

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: