I initialized characters in a list without using quotes. I want to update every value in the list so that each element in the list is converted to string so that i can use the list.
list1=[1,2,3,A,B]
for i in range(len(list1)):
list1[i]=str(list1[i])
print(list1)
I tried to update every element in the list by converting it to a string but even then i got the error.
Error Message: Traceback (most recent call last): File "C:/Users/hp/PycharmProjects/pythonProject/any.py", line 1, in list1 = [1,2,3,A,B] NameError: name 'A' is not defined Process finished with exit code 1