Posts
Python code to convert length into feet, inches, yards, miles, millimeters, centimeters, meters, kilometer.
- Get link
- X
- 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 ...
Simple code to find student result e.g (Total marks, Percentage , student GPA )
- Get link
- X
- 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: ret...
Python code to find operation of two rational numbers
- Get link
- X
- 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) pri...
HTML CODE FOR RESUME
- Get link
- X
- 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...
HTML CODE FOR CV
- Get link
- X
- 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: ...