I have Traceback error and a type error and i dont know how to fix it - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: I have Traceback error and a type error and i dont know how to fix it (/thread-15932.html) |
I have Traceback error and a type error and i dont know how to fix it - coltron1282 - Feb-06-2019 Im new to python when i added and else statement to catch mistakes and have it return to the beginning it crashes but it works just fine without the else statement def add(): name = str(input("What is the character name? ")) print("\nAre you sure your okay with", name, "? y/n ") check = input().lower() if check == "y": a_char.write(name) a_char.close() if check == "n": print("Thats okay please try again!") add() else: print("Sorry I don't understand!") add() RE: I have Traceback error and a type error and i dont know how to fix it - Larz60+ - Feb-07-2019 Quote:I have Traceback error and a type error and i dont know how to fix itthen post the error unmodified and complete. Also, use code tags see BBcode RE: I have Traceback error and a type error and i dont know how to fix it - coltron1282 - Feb-07-2019 figured it out thanks though |