Posts
Python code to convert length into feet, inches, yards, miles, millimeters, centimeters, meters, kilometer.
- Get link
- Other Apps
By Zabih
Programming with Zabih
-
In this program we will learn who to write code to convert length into different units for example feet, inches, yards, miles, millimeters, centimeters, meters, kilometer. Now the program is given below you can see it. Click on link to download code: https://drive.google.com/file/d/19riGwI1zY_UTlR6HRFBBW3bNYMiGY4_m/view class BaseLength: def __init__(self,length,unit): self.length=length self.unit=unit def feet(self): if(self.unit=='feet'): return self.length elif(self.unit=='inches'): return self.length/12 elif(self.unit=='yards'): return self.length/0.333 elif(self.unit=='miles'): return self.length/0.000189 elif(self.unit=='millimeters'): return self.length/304.8 elif(self.unit=='centimeters'): return self.length/30.48 elif(self.unit=='meters'): return self.length/
Simple code to find student result e.g (Total marks, Percentage , student GPA )
- Get link
- Other Apps
By Zabih
Programming with Zabih
-
````````````````````````````````````````````````````````````````````````````````````````````` This code put in python idle or any other idle to find student result easily ````````````````````````````````````````````````````````````````````````````````````````````` class DMC: def __init__(self,sub_1,sub_2,sub_3,sub_4,sub_5,sub_6): self.programming=sub_1 self.calulas=sub_2 self.english=sub_3 self.islamyat=sub_4 self.physics=sub_5 self.computing=sub_6 def TotalMarks(self): Total=self.programming+self.calulas+self.english+self.islamyat+self.physics+self.computing if Total<0 or Total>600: print("Enter the marks") else: return Total def percentage(self): return round(self.TotalMarks()/6,0) def GPA(self): if (self.percentage()>=85 and self.percentage()<=85): return 4.0 elif self.percentage()>=80 and self.percentage()<=
Python code to find operation of two rational numbers
- Get link
- Other Apps
By Zabih
Programming with Zabih
-
~This is the code for finding addition, subtraction, multiplication and division of two number~ from fractions import Fraction class Rational: def __init__(self,numerator,denominator): self.numerator=numerator self.denominator=denominator def Adding_R(self): x=self.numerator+self.denominator y=Fraction(x) print("\nThe addition of two rational number is:",x) print("a/b form is:") print ("%s = %s " % (x,y)) def Sub_R(self): x=self.numerator-self.denominator y=Fraction(x) print("\nThe subtrction of two rational number is:",x) print("a/b form is:") print ("%s= %s " % ( x,y)) def Mul_R(self): x=self.numerator*self.denominator y=Fraction(x) print("\nThe Multiflication of two rational number is:",x) print("a/b form is:") print ("%
HTML CODE FOR RESUME
- Get link
- Other Apps
By Zabih
Programming with Zabih
-
<!DOCTYPE html> <html> <head> <title>my cv</title> </head> <style> {border=5px solid green} </style> <p> <body> <center> <h1> <u> WELCOME TO MY CV</u> </h1> </center> <img src="E:\My pic\20201212_165651.png"height="100"width="80" border="5"align="right"> <h3>Name:Zabihullah</h3> <h3>Address: Maira surizai payan peshawar</h3> <h3>Email Address: Zabih9988@gmail.com</h3> <h3>contact No: 03xxxxxxxxx</h3><hr> <h2> <div style="background-color:gray;color;white;pedding:05px"> <u>CAREER OBJECTIVE</u> </h2> <h3> To succeed in an environment of growth , excellence and earn a job which provide me job satis
HTML CODE FOR CV
- Get link
- Other Apps
By Zabih
Programming with Zabih
-
<!DOCTYPE html> <html> <head> <title>My Resume</title></head> <body> <table border ="1" align="center" width="60%" > <tr> <th><h1>Wlecome To My Resume!</h1></th></tr> <tr><th align="left"><h2>Zabihullah</h2> <img src="E:\My pic\20201105_120806.jpg" align="right" hight="200"width="100"border="1"> <b>owner at:Apnapedia .com</b><br><br> Mobile No:03459341912<br><br> Email Address:zabih1983@gmail.com<br><br> <h2><u>personal infomation</u></h2> <ul> <li>Father Name: Haji Ghalib Khan</li> <li>Cnic: 17301-XXXXXXXXXXX</li> <li>Date of birth: 16/1/2001</li> <li>Nat