Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 I have Traceback error and a type error and i dont know how to fix it
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":
if check == "n":
print("Thats okay please try again!")
print("Sorry I don't understand!")
Quote:I have Traceback error and a type error and i dont know how to fix it
then post the error unmodified and complete.

Also, use code tags see BBcode
figured it out thanks though

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  ERROR:haproxystats:Error fetching stats deepakkr3110 1 62 Nov-12-2019, 12:29 PM
Last Post: Larz60+
Exclamation Get syntax error. Dont understand why beLIEve 21 1,202 Aug-25-2019, 02:28 PM
Last Post: ThomasL
  Type Error: bad operand type for unary +: 'str' Psypher1 2 874 Aug-12-2019, 02:30 PM
Last Post: Psypher1
  catch input type error mcmxl22 5 253 Aug-11-2019, 07:33 AM
Last Post: wavic
  Error :unable to detect undefined names created in spyder ide error at line 2 milind_eac 2 334 Jul-30-2019, 10:29 PM
Last Post: milind_eac
  Type error: dump() missing 1 required positional argument: fp jaycuff13 2 1,293 Jul-13-2019, 10:21 AM
Last Post: jaycuff13
  Type error when reading in different data types on an __init__ method Dylanmull 3 312 May-09-2019, 02:05 PM
Last Post: buran
  Getting error "Type error-a bytes-like object..." mrapple2020 1 1,288 Apr-06-2019, 06:37 PM
Last Post: mrapple2020
  scatter plot error - possibly data type - TypeError: nan is not a string chudson 1 1,105 Mar-24-2019, 11:48 AM
Last Post: chudson
  Program gives error but doesn't say where the error is. FWendeburg 3 470 Mar-09-2019, 11:42 PM
Last Post: FWendeburg

Forum Jump:

Users browsing this thread: 1 Guest(s)