This is my first python program. It asks for your name, age, and how many days are left until your birthday. It then gives you how many days old you are. I've added some write functions so that it writes the data into another file (input.txt) Is this code clean or could it be more concise? I was wondering especially about changing the strings and integers part.
from sys import argv
script, filename = argv
target = open(filename, 'a+')
name = raw_input("What is your name?\n")
print "Hello, %s" % name
years = int(raw_input("How old are you in years?\n"))
extra_days = int(raw_input("How many days until your birthday?\n"))
days = years * 365.25 + 365 - extra_days
print "You are %r days old" % int(days)
length = len(name)
print "Your name is %d letters long." % length
target.write(name + " is " + str(days) + "days old.\n")
target.close()