I'm having issues with this list, I want to times each number by a certain number, but at the moment each data in the list is a string, and if I turn the list into an integer or turn the string into an integer and make it into an list, I get an error.
def main():
isbn = input("Enter you're 10 digit ISBN number: ")
if len(isbn) == 10 and isbn.isdigit():
list_isbn = list(isbn)
print (list_isbn)
print (list_isbn[0] * 2)
else:
print("Error, 10 digit number was not inputted and/or letters were inputted.")
main()
if __name__ == "__main__":
main()
input("Press enter to exit: ")
if len(str(isbn)) == 10 and str(isbn).isdigit():list_isbn = str(isbn)input()returns a string.