Skip to content

Fixing kilometers to miles #2679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CSV_file.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import pandas as pd

# loading the dataset

df= pd.read_csv(r"c:\PROJECT\Drug_Recommendation_System\drug_recommendation_system\Drugs_Review_Datasets.csv")

print(df) #prints Dataset
# funtions
print(df.tail())
print(df.head())
print(df.info())
print(df.describe())
print(df.column)
print(df.shape())
4 changes: 4 additions & 0 deletions kilo_to_miles.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
user= float(input("enter kilometers here.. "))
miles= user*0.621371
print(f"{user} kilometers equals to {miles:.2f} miles")

20 changes: 20 additions & 0 deletions string_palin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#

# With slicing -> Reverses the string using string[::-1]


string= input("enter a word to check.. ")
copy=string[::-1]
if string == copy:
print("Plaindrome")
else:
print("!")

# Without slicing –> Reverses the string manually using a loop
reverse_string=""
for i in string:
reverse_string=i+reverse_string
if string == reverse_string:
print(reverse_string)
else:
print("!")
Loading