Untitled

 avatar
RonGut23
plain_text
17 days ago
480 B
5
Indexable
Never
import os

frutas = ["Bananá", "Uva", "Perá", "Abacate", "Morango"]
Cores = ["Azul", "Rosa", "Amarelo", "Verde", "Branco"]
Linguagens = ["Python", "Ruby", "Java", "C##", "javascript"]


with  open('frutas.txt','w',encoding='utf-8') as fruta:
    for i in frutas + Cores:
        fruta.write(i + "\n")
print(f'lista de frutas {frutas}')

with open('Linguagens.txt','w',encoding='utf-8') as melhores:
    for i in Linguagens:
        melhores.write(i + "\n")
    
Leave a Comment