darksantos

Ejercicio09

May 30th, 2012
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. # -*- coding: cp1252 -*-
  2. def Mayus_or_not(char):
  3.     alfabeto = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
  4.     x=char[0]
  5.     for i in alfabeto:
  6.         if x == i:
  7.             return False
  8.     return True
  9.  
  10. texto = raw_input ( 'Ingrese palabra: ')
  11. if Mayus_or_not(texto):
  12.     print 'Empieza con una MayΓΊscula'
  13. else:
  14.     print 'Empieza con una MinΓΊscula'
Advertisement
Add Comment
Please, Sign In to add comment