How to fix this type error without type casting? Traceback (most recent call last): File D:/.Programming/Python/L6_Jiang_Tommy_tkj5216.py,line 54,
Fantastic news! We've Found the answer you've been seeking!
Question:
How to fix this type error without type casting?
Traceback (most recent call last): File "D:/.Programming/Python/L6_Jiang_Tommy_tkj5216.py",line 54, in main() File "D:/.Programming/Python/L6_Jiang_Tommy_tkj5216.py",line 51, in main write_to_file("created_file.txt",test_lst) File "D:/.Programming/Python/L6_Jiang_Tommy_tkj5216.py",line 32, in write_to_file infile.write(lst+"")TypeError: can only concatenate list (not "str") to list
Related Book For
Survey of Accounting
ISBN: 978-0078110856
3rd Edition
Authors: Thomas P. Edmonds, Frances M. McNair, Philip R. Olds, Bor Yi
Posted Date: