This project shows the difference with a List or Tuple.   It shows what is a string and what is a tuple

s = "\'a', 'b', 'c', 'd', 'e\'"
t = ('a', 'b', 'c', 'd', 'e')
print(s, 'is a ', type(s), 'because it is enclosed by quotes')
print(t, 'is a ', type(t), 'because it has ( around it')


print('')
print('print each character of the string')
x = 0
while x < len(s):
print(s[x], end="")
x += 1
print('')
print('')
print('print each character of the tuple')
x = 0
while x < len(t):
print(t[x], end="")
x += 1
print('')
print('')
s1 = ('a',)
t2 = ('a' )
print(s1, 'is a ', type(s1),'it ends with a comma')
print(t2, 'is a ', type(t2))

print('')
t3 = tuple('python')
print(t3, 'is a ', type(t3))
'a', 'b', 'c', 'd', 'e' is a  <class 'str'> because it is enclosed by quotes
('a', 'b', 'c', 'd', 'e') is a <class 'tuple'> because it has ( around it

print each character of the string
'a', 'b', 'c', 'd', 'e'

print each character of the tuple
abcde

('a',) is a <class 'tuple'> it ends with a comma
a is a <class 'str'>

('p', 'y', 't', 'h', 'o', 'n') is a <class 'tuple'>

Process finished with exit code 0