device_list
is just a list of character strings. So when you print one element of it, it's just the string that is printed.device_list = ["device0", "device1", "device2", "device3 ", "device4", "device5", "device6", "device7", "device8", "device9", "device10", "device11 ", "device12", "device13", "device14"] ... selected_device = (device_list[x]) # this will be a string like "device14" print(selected_device) # And here it is printed out.