Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # spanish class help beta
- t0 = 'genio'
- t1 = 'chico'
- t2 = 'esquinas'
- t3 = "parques"
- t4 = "vino"
- t5 = 5
- t6 = None
- def sh(*args):
- out = []
- for i in args:
- if type(i).__name__ == 'str' and i[-1:] == 'a':
- out.append('la ' + i)
- elif type(i).__name__ == 'str' and i[-2:] == 'as':
- out.append('las ' + i)
- elif type(i).__name__ == 'str' and i[-1] != 's':
- out.append('el ' + i)
- elif type(i).__name__ == 'str':
- out.append('los ' + i)
- else:
- out.append(i)
- return out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement