- 2
what is the output of this code? >>>spam="7" >>>spam=spam+"0" >>>eggs=int(spam) + 3 >>>print(float(eggs)) 1-703 2-10.7 3-73.0
5 Answers
+ 4
This belongs in the quiz factory :P
Unless this is from the lessons, in which case, don't ask here, please.
+ 4
I don't want to tell you outright, sorry. You might see something like this again and not understand what's happening. :(
This has something to do with strings (specifically, concatenating/"adding" them) and type casting, so try rereading the lessons that explain these things. Maybe you missed something.
If you're still stuck, check the comments of the question. Someone might have an explanation there.
Edit: I thought this was in the Python lesson, whoops.
+ 1
i know yeah ..but how can i pass it lol ??
0
okay Tamra i get it ..thanks alot for ur help :))
0
73.0



