#python help splitting strings

1 messages · Page 1 of 1 (latest)

clear phoenix
#

i have not used python for a while but i can't really find it anywhere on google , i have done it before i just have no clue anymore

bassicly i have a login like this "user123:password123"
and i need to store user123 into variable username and password123 into password

#

@gentle sphinx

#

yeah i did, its something with .split(":", 1 ) and .split(":", -1)

#

.split(":", -1 ) gives me the username so thats a start

#

but i can't seem to get the other part on the right side of :