This is after installing Python 3 and Atom and Miniconda.
An error occurs when I run the Celsius converter program in cmd after writing a function in atom.
Is there a problem with the function I wrote?
3/31 12:41 Correction
def input_celsius_value():
celsius_value = float("This program converts seob to Fahrenheit")
print(celsius_value)
#----------------------------------------
result = float(celsius_value)
def convert_celsius_fahrenheit():
fahrenheit_value = float((9 / 5) * celsius_value) + 32)
#----------------------------
result = fahrenheit_value
def print_fahrenheit_value():
print(celsius_value : , fahrenheit_value :)
#--------------------------------
3/31 12:42
D:\workspace\mooc_python_labs\lab_4>python fahrenheit_converter.py File "fahrenheit_converter.py", line 4 celsius_value = float("This program converts seob to Fahrenheit" :)) ^ SyntaxError: invalid syntax
error python
When you write a code, it doesn't work if you make a mistake with even one small thing.
Check out how to create a function in Python again.
Please correct the colon and brackets.
619 Uncaught (inpromise) Error on Electron: An object could not be cloned
578 Understanding How to Configure Google API Key
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
582 PHP ssh2_scp_send fails to send files as intended
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.