Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 6 Online
OpenStudy (anonymous):

For example, The computer should ask enter your date of birth 6/1/1923 enter your last name smith smith 6/1/1993

OpenStudy (anonymous):

def main(); str=input('Enter your name') date=input('Enter Birth date') str=str.replace('\n',' ') str=str.strip() date=date.replace('\n',' ') date=date.strip() print(str+' '+date) if __name__="__main__": main()

OpenStudy (anonymous):

it should be __name=="__main': and not __name="__main__":

OpenStudy (anonymous):

there should be double == sign sorry for multiple post

OpenStudy (anonymous):

just for clarity: if __name__=='__main__':

OpenStudy (anonymous):

How about an easier solution? str=raw_input('Enter your name') date=raw_input('Enter Birth date') print str,date

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!