I have a text file containing a single line containing a key and a value.
From python how can I import that text file and fetch the name ie., xyz
open('filename.txt')opens the file
.readreads the line
.split(':')splits the line on
:and takes the second element (the value)
.strip()strips the value from the first space