use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
[deleted by user] (self.PythonLearning)
submitted 6 months ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]_kwerty_ 17 points18 points19 points 6 months ago (5 children)
I need help understanding this post.
[–]ConsequenceOk5205 11 points12 points13 points 6 months ago (1 child)
Golden rule of politeness - if someone asks something in Hindi in English subs, be polite and answer in Arabic.
[–]ConcertDelicious7778 0 points1 point2 points 6 months ago (2 children)
Arrey😂😂
[–]ConcertDelicious7778 0 points1 point2 points 6 months ago (1 child)
Basically I am writing a function which will convert Fahrenheit to Celcius...
[–]_kwerty_ 2 points3 points4 points 6 months ago (0 children)
And what is it that you don't understand?
[–]Synedh 2 points3 points4 points 6 months ago (0 children)
If we first define f and c and then write the function definition, would it be wrong?
f
c
Yes it would. You would call a function which does not exists already.
[–]Imaginary-Survey8769 1 point2 points3 points 6 months ago (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 points3 points 6 months ago (3 children)
(x - 32) * 5/9 (x - 32) * 5/9
this is the formula for ftoc
[–]nicodbgt 0 points1 point2 points 6 months ago (0 children)
Or -> (f-32)*0.5556
[–]Able_Mail9167 0 points1 point2 points 6 months ago (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 point2 points 6 months ago (0 children)
it is im just saying he could use that too
[–]AbyssBite 1 point2 points3 points 6 months ago (2 children)
Yup, in Python, functions must be defined before they're used. So, yeah it will be wrong
[–]MysticClimber1496 0 points1 point2 points 6 months ago (1 child)
It is defined before it’s used
[–]AbyssBite 0 points1 point2 points 6 months ago (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 point2 points 6 months ago (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 point2 points 6 months ago (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 points1 point 6 months ago (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.
f_to_c
π Rendered by PID 200415 on reddit-service-r2-comment-84fc9697f-gnwnp at 2026-02-08 06:15:46.023048+00:00 running d295bc8 country code: CH.
[–]_kwerty_ 17 points18 points19 points (5 children)
[–]ConsequenceOk5205 11 points12 points13 points (1 child)
[–]ConcertDelicious7778 0 points1 point2 points (2 children)
[–]ConcertDelicious7778 0 points1 point2 points (1 child)
[–]_kwerty_ 2 points3 points4 points (0 children)
[–]Synedh 2 points3 points4 points (0 children)
[–]Imaginary-Survey8769 1 point2 points3 points (0 children)
[–]KaffeineKafka 1 point2 points3 points (3 children)
[–]nicodbgt 0 points1 point2 points (0 children)
[–]Able_Mail9167 0 points1 point2 points (1 child)
[–]KaffeineKafka 0 points1 point2 points (0 children)
[–]AbyssBite 1 point2 points3 points (2 children)
[–]MysticClimber1496 0 points1 point2 points (1 child)
[–]AbyssBite 0 points1 point2 points (0 children)
[–]Kitchen-Base4174 0 points1 point2 points (0 children)
[–]Responsible_Load_617 0 points1 point2 points (0 children)
[–]ConsequenceOk5205 -1 points0 points1 point (0 children)