+ 1

can anyone help me what is wrong with my code

just enter the following input : magnification real convex 56 78 i dont know what is wrong with my code it is just showing me errors and errors https://code.sololearn.com/czq3Qi08AUv7/#py please click on this link to see my code

20th Aug 2020, 4:06 PM
Tayyib
Tayyib - avatar
1 Answer
0
Who can go to check with such code? Mainly it is hard to analyse big codes for others.. Even for you after a long time, for your own code.. So learn debug process.. Make sure your code all indentations correct.. Test one by one if else, by commenting others... Tayyib First the condition if _to_know=="all properties" or "all" or "ALL" : Results all always. It should be like if _to_know=="all properties" or _to_know== "all" or _to_know == "ALL" : Or by list usage like if _to_know in [ "all properties", "all", "ALL"] : Simalar for all. And Else It seems that as you said you entering input, there exiting mismatching of giving inputs, like string for float value.. Do check again.. And mention percular error with perticular code snippet. Then some may respond with required answer.. Hope it understandable.... For your input, image_distance=int(input()) #this requires int value but you entering string "convex" so error.
20th Aug 2020, 5:41 PM
Jayakrishna 🇼🇳