Skip to main content

Binary to Decimal and Decimal to Binary Convertor in PYTHON

Binary to Decimal Convertor 
Decimal to Binary Convertor in PYTHON








John Veer
Basic Python Projects
Contact mail id - john.veer.utube@gmail.com
Thanks for reading

www.basicpythonprogramme.blogspot.com
www.basicpythonprojects.blosgpot.com 


Comments

Popular posts from this blog

Your Age in Seconds, Minutes, hours and in days program in PYTHON

  import datetime print ( " \n Instructions:" ) print ( " \n 1.) Put the date correctly." ) pyear = datetime . datetime . today (). strftime ( '%Y' ) pyear = int ( pyear ) pmonth = datetime . datetime . today (). strftime ( '%m' ) pmonth = int ( pmonth ) pdate = datetime . datetime . today (). strftime ( ' %d ' ) pdate = int ( pdate ) phour = datetime . datetime . today (). strftime ( '%H' ) phour = int ( phour ) pmin = datetime . datetime . today (). strftime ( '%M' ) pmin   = int ( pmin ) psec = datetime . datetime . today (). strftime ( '%S' ) psec = int ( psec ) byear = int ( input ( "Birth year (For eg. 2005, 1976 etc): " )) i = 1 while i > 0 :     if byear >= pyear :         print ( " \n Year is invalid.." )         byear = int ( input ( "Birth year (For eg. 2005, 1976 etc): " ))         i = i + 1     else :         break bmon...

Stone-Paper-Scissor in PYTHON

import random import time mylist = [ 1 , 2 , 3 ] print ( "Welcome to the Stone-Paper-Scissor game." ) print ( " \n Here are some of the rules" ) print ( "1.) There will be five round. The one whose score is more will be declared as winner." ) print ( "1.) For Stone, simply press 1." ) print ( "2.) For Paper, simply press 2." ) print ( "3.) For Scissor, simply press 3." ) print ( " \n Now, Lets go!" ) i = 0 j = 0 k = 1 for k in range ( 1 , 6 ):     print ( " \n ROUND " , k )     y = int ( input ( " \n Enter your choice as 1, 2 and 3 as instructed above: " ))     m = random . choice ( mylist )     if y == 1 :         if m == 1 :             print ( " \n Tie" )         elif m == 2 :             print ( " \n Computer chose paper, so you lose. Try again." )             j = j + 1       ...