Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Convert temperature from Celsius to kelvin #5541

Open
harshraj8843 opened this issue Mar 22, 2024 · 2 comments
Open

Convert temperature from Celsius to kelvin #5541

harshraj8843 opened this issue Mar 22, 2024 · 2 comments
Labels
auto-track Good First Issue Tracker program

Comments

@harshraj8843
Copy link
Contributor

harshraj8843 commented Mar 22, 2024

Description

Write a program to convert temperature from celsius to kelvin

Input  ( C ) : -40
Output ( K ) : 233.15

Contributed by - @magar51

### Tracking Issues
- [ ] #5543
- [ ] #5544
- [ ] #5545
- [ ] #5546
- [ ] #5547
- [ ] #5548
- [ ] #5549
- [ ] #5550
- [ ] #5551
- [ ] #5552
- [ ] #5553
- [ ] #5554
- [ ] #5555
- [ ] #5556
- [ ] #5557
- [ ] #5558
- [ ] #5559
- [ ] #5560
- [ ] #5561
- [ ] #5562
@harshraj8843 harshraj8843 added the auto-track Good First Issue Tracker label Mar 22, 2024
@SanjuPSaji
Copy link

def celsius_to_kelvin(celsius):
kelvin = celsius + 273.15
return kelvin

Input temperature in Celsius

celsius = float(input("Enter temperature in Celsius: "))

Convert Celsius to Kelvin

kelvin = celsius_to_kelvin(celsius)

Display the result

print("Temperature in Kelvin:", kelvin)

@akshithreddy99
Copy link

!assign

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-track Good First Issue Tracker program
Projects
None yet
Development

No branches or pull requests

3 participants