The link to the Exercise i am stuck on: https://www.codecademy.com/en/courses/python-beginner-2W5v7/0/5?curriculum_id=4f89dab3d788890003000096
The error messages are "Traceback (most recent call last):
File "python", line 4, in
TypeError: 'str' object is not callable"
this is the instructions for what i want to happen:Use and to add a second condition to your if statement. In addition to your existing check that the string contains characters, you should also use .isalpha() to make sure that it only contains letters.
my code below, if anyone could tell me what needs editing and tell me why would be massively appreciated
print 'Welcome to the Pig Latin Translator!' # Start coding here! raw_input("what's your name?") original = raw_input raw_input = "" if len(original) > 0 and original.isalpha(): "Run this block" else: "string must be empty"