Apr-15-2022, 09:30 PM
(This post was last modified: Apr-15-2022, 09:30 PM by Gribouillis.)
Use
.rstrip()
to remove possible white space, including newline at the end>>> 'CELADM04\n'.rstrip() 'CELADM04' >>>