g = raw_input("What gender would you prefer Male or Female? (Please press m or f): ")
p = raw_input("Please enter your 10 digit Phone Number: ")
reasons = raw_input("Please enter your reason by pressing 1-4: ")
r = reasons
valid_mp3 = g+p+r
print valid_mp3
f12312312345
输出形式为:gender (f) phone# (1231231234) Reason (5) 有没有办法说明:
if getFirstCharacter(valid_mp3) == 'f':
# miscellaneous command
if getSecondCharacter(valid_mp3) == '1'
# miscellaneous command
如何实施getFirstCharacter
,getSecondCharacter
例如?