Posts by Di0nk3r_. • 41 points
2 posts
-
2
votes1
answer61
viewsQ: Print the name of a dictionary in Python
Follows the code: layla = {'tipo':'cachorro', 'nome_dono':'lucas'} ratata = {'tipo':'rato', 'nome_dono': 'Dante'} pikachu = {'tipo': 'furão', 'nome_dono':'Ash'} pets = [layla, ratata, pikachu] for…
python-3.xasked Di0nk3r_. 41 -
2
votes3
answers3080
viewsQ: Check the line containing a string inside a TXT file
I need help with a program that reads a file and responds to me on which line contains a string inside it. Example I have a file . txt and inside it I have 5 lines: File.txt: arroz batata feijão…