Posts by Rafael Freitas • 13 points
1 post
-
1
votes1
answer250
viewsQ: How to create separate objects from a loop?
class linha (): def __init__ (self, texto): self.texto = texto def criador (): for i in range(5): a = raw_input ('escreva: ') global objetoi objetoi = linha (a) How do I make the function criador…