May 10, 2023, 10:15pm
I know this is super last minute but I need help save asking chat gpt I was wondering if I could ask if someone knows where I am going wrong with this code?:…???
def main ():
value = 0
input(‘Enter temperature in Farenheit:’)
value = input
def reaumur ():
value - 32 / .44
print (‘The converted tempereature amount is:’, value)
this is the return to the console after compiling:
Enter temperature in Farenheit:12
The converted temperature amount is:
PLEASE HELP ME
I keep getting this back top the console so Im thinking that it has something to do with the value not being passed to the reaumnur conversion operation…right?
May 10, 2023, 10:29pm
There are probably many things here that don’t make sense, but before we can talk about the code properly, we need to see it properly. Please
read the sticky and make sure the code appears as you actually have it.
May 11, 2023, 7:30am
Welcome to our Python Tutorial. We’ll cover the basics here and link to more in depth resources along the way. We hope you enjoy the tutorial and walk away with a better understanding of the Python programming language. Let’s get started with our...
Est. reading time: 19 minutes
Although it was written for Python2, the concepts are still valid; the major difference is that with Python3,
print() is a function call, so when you see a code line such as:
print "You can concatenate two " + "strings with the '+' operator."
… you’ll need to keep that in mind and change
print("You can concatenate two " + "strings with the '+' operator.")
May 11, 2023, 7:41am
That’s quite old now though. I would recommend that people learn with something that doesn’t need to be translated. Why put unnecessary barriers in someone’s way?
Here’s a newer tutorial:
The Python Tutorial — Python 3.11.3 documentation
May 11, 2023, 7:51am
Yes, it is and so am I
I learned Python3 by first learning Python2 and adapting the code, but maybe that’s just the way my head works – I have a ‘why’ kind or a mindset, rather than simply a ‘how’.