Reputation: 1 Apprentice
- New Members
- Active Posts:
- 4 (0.01 per day)
- 09-January 13
- Profile Views:
- Last Active:
- Jan 19 2013 09:55 AM
- Dream Kudos:
Posts I've Made
Posted 19 Jan 2013I love Tiled!
Tiled can be used to create the map, but a map doesn't control the camera, that's going to be part of your pygame application.
I love you! (no homo)
Posted 10 Jan 2013Thanks guys, it turned out I needed raw_imput on line 2.
Posted 9 Jan 2013You need quotes around "Doublify" and indenting:
name = input("A number for doublifier:") word = input("say Doublify") if word == "Doublify": print ("Your doubled number is ", name * 2) else: print ("USE THE MAGIC WORD!!!")
BTW the error message doesn't reflect the code you have shown?!
BTWW If you want to double a number then you will have to convert the string name to a number. (input() returns a string.)
Thanks all though it still comes up with:
A number for doublifier:2
Traceback (most recent call last):
File "C:\Users\Ben\Desktop\BADouplifier.py", line 2, in <module>
word = input("say Doublify")
File "<string>", line 1, in <module>
NameError: name 'Doublify' is not defined
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
Ghostpanda34 hasn't added any friends yet.