3
3
3DOSES2021-08-04 13:33:15
Python
3DOSES, 2021-08-04 13:33:15

How to fix file entry?

the entire list of characters is not written, only the last line

f.write(password)

f.close()

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Kuts, 2021-08-04
@3DOSES

Move
f.write(password)
four spaces to the right

H
HemulGM, 2021-08-04
@HemulGM

f.write(password) to execute on each iteration of the loop.
I'm at a loss. How can you not understand what the problem is?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question