Ask your own question, for FREE!
MIT 6.01SC Introduction to Electrical Engineering and Computer Science I 7 Online
OpenStudy (anonymous):

I am receiving the following error on a program: TypeError: 'float' object is not iterable This is the Code: import lib601.sm as sm def safeAdd (p1,p2): if p1 == 'undefined': if p2 == 'undefined': return 0.0 else: return p2 else: if p2 == 'undefined': return 0.0 else: return p1 + p2 def safeMul (p1,p2): if p1 == 'undefined': if p2 == 'undefined': return 1.0 else: return p2 else: if p2 == 'undefined': return 1.0

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!