dev-resources.site
for different kinds of informations.
Python - Level : 1 Tasks
Published at
12/1/2024
Categories
payilagam
python
coding
tasks
Author
guru_prasanna_01
Author
16 person written this
guru_prasanna_01
open
Level 1 Tasks
1) Fahrenheit to Celcius Conversion
f=int(input("Enter the no. "))
c=5/9*(f-32)
print("Fahrenheit to celsius",round(c))
Output:
Enter the no. 108
Fahrenheit to celsius 42
2) Celcius to Fahrenheit Conversion
c=int(input("Enter the no. "))
f=c*(9/5)+32
print("celsius to fahrenheit",round(f))
Output:
Enter the no. 42
celsius to fahrenheit 108
3) Ft to Meter Conversion
#1 Feet = 0.3048 meters
feet=float(input("Enter the no. "))
meter=feet*0.3048
print("feet to meters",round(meter,1))
Output:
Enter the no. 15
feet to meters 4.6
4) Input-Side,Output-Area of A Square
side=float(input("Enter the no. "))
area=side**2
print("Area of a square is ",area)
Output:
Enter the no. 5
Area of a square is 25.0
5) Input-Length, Breadth;Output- Area of a Rectangle
#Area of a Rectangle=length*breadth
length=float(input("Enter length of the rectangle. "))
breadth=float(input("Enter breadth of the rectangle. "))
area=length*breadth
print("Area of a rectangle is ",area)
Output:
Enter length of the rectangle. 5
Enter breadth of the rectangle. 10
Area of a rectangle is 50.0
6) Radius - Area of a circle
#Area of circle = πr2
r=int(input("Enter the radius of circle: "))
area=3.14*(r**2)
print("Area of the circle is ",area)
Output:
Enter the radius of circle: 5
Area of the circle is 78.5
7) USD to INR Conversion
#usd=Rs. 84.56
dollar=float(input("Enter currency in dollars: "))
usd=dollar*84.56
print("Currency in rupees is =",usd)
Output:
Enter currency in dollars: 500
Currency in rupees is = 42280.0
8) Singapore time to india time
singapore time is ahead by 2.30 hours comparing to indian time.
from datetime import datetime, timedelta
singapore_time_str = input("Enter Singapore Time (HH:MM:SS): ")
singapore_time = datetime.strptime(singapore_time_str, "%H:%M:%S")
time_difference = timedelta(hours=2, minutes=30)
indian_time = singapore_time - time_difference
print("Indian Time:", indian_time.strftime("%H:%M:%S"))
Output:
Enter Singapore Time (HH:MM:SS): 12:30:00
Indian Time: 10:00:00
tasks Article's
30 articles in total
Diving into the Use of Use Cases in JIRA🌟
read article
Python Day- 14 Looping-Exercises and tasks
read article
Python - Level : 2 Tasks
read article
Python - Level : 1 Tasks
currently reading
Operators, Conditionals& Inputs Tasks
read article
Track your Google Tasks to-do list in Google Sheets with webMethods.io Integration
read article
Streamlining Asynchronous Tasks in Django with Django Tasks Scheduler
read article
Navigating the Landscape of Tasks APIs and Integration Challenges
read article
Task scheduler interval in the rust
read article
Scheduling tasks in Golang with atomicgo
read article
Priority and Severity of tasks and bugs
read article
Command Prompt - Dealing with Tasks
read article
Cron Jobs - Automating tasks on Linux
read article
Celery & Redis : exécution de tâches en différé / asynchrones
read article
How to Practice Root Cause Analysis in tech problems
read article
Prioritizing Tasks - Time Management
read article
How I make myself productive with Google
read article
VSCode tasks and parsing your custom output for problems
read article
Creating containers for Django apps with periodical tasks
read article
Top 5 Work Habits to Boost Productivity
read article
Calendar Heroes: Michele Wiedemer, Manager of Customer Education at Snyk
read article
Calendar Heroes: Rohini Pandhi, Product @ Square
read article
A way to not lose track of what you've done at work
read article
C# - The For Loop Paradox
read article
Plan like a Pro with Automatic Scheduling in Taskjuggler
read article
Brief intro on Celery
read article
My approach to planning personal projects, tasks, and goals with examples
read article
Rails Tasks: exporting database models to a CSV.
read article
VSCode Tasks - Specifying custom PATH
read article
Using a text editor for task tracking
read article
Featured ones: