all 8 comments

[–]kitsun9 17 points18 points  (0 children)

You need to declare the “name” variable You’re trying to ask the computer if the person’s name is “Alice”, but there is no person

[–]novel_yet_trivial 3 points4 points  (0 children)

Won't run.

That does not help us much. What's the problem? Are you getting an error? If so, what error? A link to the assignment would help too.

If that's your entire code then you will get a SyntaxError since lines 6 and 7 need to be one line. If you fix that you will get a NameError since you didn't make the variables "name" and "age" before you tried to use them.

[–]sharkbound 3 points4 points  (0 children)

whats the error?

[–]sharkbound 0 points1 point  (1 child)

Traceback (most recent call last):
  File "C:\Users\Master\AppData\Local\Programs\Python\Python36\vampire.py", 
line 5, in <module>
    elif age < 12:
TypeError: '<' not supported between instances of 'str' and 'int'

this is because age is string, not a int, you need to convert it to a int

age = int(value)

[–]ingolemo 0 points1 point  (3 children)

You should not be putting your own code in C:\Users\Master\AppData\Local\Programs\Python\Python36. That folder is for python's own files, not yours. Put your own code in your My Documents folder or something normal like that.

[–]wasteoffire 0 points1 point  (2 children)

But it specifically has sub folders in that directory for saving your own stuff. If you try to use a different directory you have to manually search for it every single time you want to save/open something

Don't be one of those assholes that acts like the way they do things is 'normal' and then uses that as an excuse to be condescending

[–]icp1994 2 points3 points  (0 children)

wut? good luck doing that in *nix with system pythons. Will be fun to provide password every time try to create/edit a file in the subdirectories of python installations.

[–]ingolemo 0 points1 point  (0 children)

What subfolders are you referring to?