I want to make this program print "Only str type supported" when 'name' gets any data type that isn't str. What should i change in this code?
while True:
name =(input("Whats ur name?"))
if name == 'Richard':
print('ok')
break
elif name == "gosha":
print('FEUER FREI! "BANG BANG BANG BANG"')
else:
print('denied')