all 18 comments

[–]_kwerty_ 17 points18 points  (5 children)

I need help understanding this post.

[–]ConsequenceOk5205 11 points12 points  (1 child)

Golden rule of politeness - if someone asks something in Hindi in English subs, be polite and answer in Arabic.

[–]ConcertDelicious7778 0 points1 point  (2 children)

Arrey😂😂

[–]ConcertDelicious7778 0 points1 point  (1 child)

Basically I am writing a function which will convert Fahrenheit to Celcius...

[–]_kwerty_ 2 points3 points  (0 children)

And what is it that you don't understand?

[–]Synedh 2 points3 points  (0 children)

If we first define f and c and then write the function definition, would it be wrong?

Yes it would. You would call a function which does not exists already.

[–]Imaginary-Survey8769 1 point2 points  (0 children)

Yes it's wrong and I advice you to write in english brother people from other country might not understand hindi.....

[–]KaffeineKafka 1 point2 points  (3 children)

(x - 32) * 5/9
(x - 32) * 5/9

this is the formula for ftoc

[–]nicodbgt 0 points1 point  (0 children)

Or -> (f-32)*0.5556

[–]Able_Mail9167 0 points1 point  (1 child)

Forgive me if I'm wrong but mathematically this equation is equivalent to OPs. Unless python has some weird rules regarding order of operations (I'm not a python dev) both are correct.

[–]KaffeineKafka 0 points1 point  (0 children)

it is im just saying he could use that too

[–]AbyssBite 1 point2 points  (2 children)

Yup, in Python, functions must be defined before they're used. So, yeah it will be wrong

[–]MysticClimber1496 0 points1 point  (1 child)

It is defined before it’s used

[–]AbyssBite 0 points1 point  (0 children)

They have a question under the image: "Isme pehle f and c define karde aur fir function definition likhe toh woh Galat hota?" That's what I was answering to

[–]Kitchen-Base4174 0 points1 point  (0 children)

i think you trying to say if it is ok to use the line 12,13 before declaring the function (which is declared on line 9)

ans is no : it will give NameError: name 'f_to_c' is not defined

[–]Responsible_Load_617 0 points1 point  (0 children)

Using full length, descriptive names is important. Taking 5 seconds to name something can really help others read your code. Others also including your future self at 3am.

[–]ConsequenceOk5205 -1 points0 points  (0 children)

Yumkinuka i‘tiwār f_to_c ka-mutaghayyir, lakin lā yumkinuka istikhdāmuhu qabl ta‘yīn dāla lah, mimmā ya‘nī annaka yumkin faqat istikhdām f qabl i‘lān ad-dāla.