Answer the question
In order to leave comments, you need to log in
How to replace a character in the last line of output?
When executing the code the result is:
Accounts:
├ @invaiderd
├ @xeokls
├ @JEy9key
Accounts:
├ @JEy9key
Accounts:
├ @invaiderd
├ @xeokls
└ @JEy9key
Accounts:
└ @JEy9key
Answer the question
In order to leave comments, you need to log in
Accounts = '@invaiderd','@xeokls','@JEy9key'
Accounts_len = len(Accounts) - 1
x = ' ├'
y = ' └'
print('Accounts:')
for item in Accounts:
print(x,item)
if item == Accounts[Accounts_len]:
print(y,item)
break
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question