Need help for Area Calculator


#1

i have tried to solve it but still not giving me the right answer…


#2

general syntax for if:

if condition:

the colon is missing in your case


#3

Thank you for your help …

i added the colon … but still the error is shown


#4

why did you add the colon there?


#5

should i add it after ‘C’ ?


#6

i don’t know, should it? In my example i place the colon after the condition, in your code what is the condition? Knowing that should answer where to place the colon


#7

just worked :)…

Thank you for your support


#8

Hey bighash, I have the same problem. I have tried to put the colon just after the ‘C’. It still gives me a syntax error. Any advice?


#9

Check that your indentation is correct.


#10

Thanks, indentation was fine. I think the problem was in the quotes i used for the string. ’ '. That’s the only thing i changed and it ran fine. Thanks a lot!!!


#11

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.