Like in my script:
#!/usr/bin/env python
#-*- coding:utf-8 -*-
print "You will be prompted to enter your height in feet and inches."
height_in_feet = input("How much feet are you long: ")
remaining_inches = input("How much inches remained? ")
inches_in_feet = height_in_feet * 12
total_height_in_inches = inches_in_feet + remaining_inches
print "You are %d inches long." % total_height_in_inches
Here I want something like:
Enter you height in format like 5' 10"
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor